Skip to content
Prev 26144 / 398502 Next

Lognormal distribution

Hallo
On 10 Dec 2002 at 12:24, Dr Andrew Wilson wrote:

            
I think that you can use distribution generator 
in this case

mydistr<-rlnorm(n, meanlog = 1.94810515, sdlog = 0.57091032)

where n is number of points you would like to generate.

see
?rlnorm
something like histogram(mydist) or lines(density(mydist))

or if you want the fitted distribution curve

plot(0:100,dlnorm(0:100, meanlog = 1.94810515, sdlog = 
0.57091032),type="l")
Hope it helps
Cheers
Petr Pikal
petr.pikal at precheza.cz
p.pik at volny.cz