Hi, Does anyone know what the mean value of a lognormal distribution in base-2 
is? I am simulating stochastic population growth and if I were working in 
base-e, I would do:lambda <- 1.1 #multiplicative growth rates <- 0.6 
#stochasticity (std. dev)lognormal <- rlnorm(100000, log(lambda) - (s^2)/2, 
s)## or lognormal <- exp( rnorm( 100000,  log(lambda) - (s^2)/2, 
s)mean(log(lognormal))which gives the desired mean of  mean-(var^2)/2. 
Unfortunately, I have to do this in base-2.  I know that I can generate a 
lognormal in base 2 by raising 2 to the power of the variates, but I don't know 
what the mean value should be.Any help is much appreciated...Mark

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to