Re: [R] Is my understanding of rlnorm correct?

2008-05-04 Thread phil colbourn
/repair processes which I have read are typically log-normal. I should now be able to get the result i expect to get. Thanks again. On Sun, May 4, 2008 at 3:11 PM, Berwin A Turlach <[EMAIL PROTECTED]> wrote: > G'day Phil, > > On Sun, 4 May 2008 14:05:09 +1000 > phil col

[R] Is my understanding of rlnorm correct?

2008-05-03 Thread phil colbourn
rlnorm takes two 'shaping' parameters: meanlog and sdlog. meanlog would appear from the documentation to be the log of the mean. eg if the desired mean is 1 then meanlog=0. So to generate random values that fit a lognormal distribution I would do this: rlnorm(N , meanlog = log(mean) , sdlog