Skip to content
Prev 621 / 885 Next

Sample from Log-Normal Distribution

Dear All:

I need someone to clarify the value of the *meanlog* and *stlog* used in
the function *rlnorm* when you sample from log-normal distribution.

rlnorm(n, meanlog = 0, sdlog = 1)



*For example: *y<- rlnorm(25, meanlog = 5, sdlog = 1)


Is the value of the meanlog, *5*, the mean of the log-normal distribution.
Similarly, is the value of the *sdlog*, *1*, the standard deviation of the
log-normal distribution.

or 5 and 1 are the mean and standard deviation of the normal distribution
of x = log(y) ~N(mean =5, var = 1)

with many thanks

steve