dnLognormal
- Lognormal Distribution
mean : | Real (pass by const reference) |
The mean in log-space (observed mean is exp(m)). | |
sd : | RealPos (pass by const reference) |
The standard deviation in log-space. |
# set an expected value for x
expectation_of_x <- 1
# set a mean and sd parameter
sd <- 0.5
mean <- ln(expectation_of_x) - 0.5 * sd^2
# create a lognormal distribution with expected value of 1
x ~ dnLognormal(mean=mean, sd=sd)