[R] How to generate the random numbers with the lognormal distribution?

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Nov 18 08:48:50 CET 2005


¹ãÐÇ wrote:

> Hi,R-list!
> I am a newbie to the R and what I want to know mostly now is as follow:
> Using "rnorm()",we could get the random numbers with normal distribution,
> but how to generate the random numbers with  the lognormal distribution?

What about searching in the help files?
It's not that far away:
?rlnorm

Uwe Ligges


> Thank you in advance!
> 
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡guangxing at ict.ac.cn
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2005-11-18
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list