From dmurdoch at pair.com  Sat May  1 17:08:48 2004
From: dmurdoch at pair.com (dmurdoch@pair.com)
Date: Sat May  1 17:08:50 2004
Subject: [Rd] Generating Lognormal Random variables (PR#6843)
Message-ID: <20040501150848.E1F83ED00@slim.kubism.ku.dk>

On Sat,  1 May 2004 17:00:28 +0200 (CEST), anthony@stat.sdu.dk wrote:

>Full_Name: Anthony Gichangi
>Version: 1.90
>OS: Windows XP Pro
>Submission from: (NULL) (130.225.131.206)
>
>
>The function rlnorm generates negative values for lognormal distribution. 
>
>x- rlnorm(1000, meanlog =  0.6931472, sdlog = 1)

It doesn't for me, and the line you typed above makes it look like
you're subtracting lognormals from x.

Could you post a reproducible example?  For random number generators,
you can make them reproducible by using set.seed, e.g.

> set.seed(1)
> range(rlnorm(1000, meanlog =  0.6931472, sdlog = 1))
[1]  0.09877592 90.32586746

Duncan Murdoch


[Rd] Generating Lognormal Random variables (PR#6843)
dmurdoch@pair.com