Andrej-Nikolai Spiess uke.uni-hamburg.de> writes:
>
> Dear R-helpers,
>
> I´m in the context of writing a general function for error propagation
> in R.
> There are somehow a few questions I would like to ask (discuss), as my
> statistical knowledge is somewhat restricted.
> Below is the funct
Hi Steve,
I think you need to use apply() as in the following tiny example:
x <- data.frame(response = c(-121,-131,-135))
apply(x, 1, function(response){rnorm(10, mean = response, sd =
rnorm(10, mean = 9.454398, sd = 1.980136))})
Christian
__
R-hel
Perhaps:
sim <- apply(x, 1, function(.x)rnorm(1000, .x[2], rnorm(1000,mean=
9.454398,sd=1.980136)))
On 08/02/2008, Steven Van Wilgenburg <[EMAIL PROTECTED]> wrote:
> Hello,
>
>
> I wish to examine the influence of error in variables on my analyses
> via error propagation. I have a data frame (x)
3 matches
Mail list logo