From p.dalgaard at biostat.ku.dk  Sat May  1 17:02:55 2004
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Sat May  1 17:07:06 2004
Subject: [Rd] Generating Lognormal Random variables (PR#6843)
In-Reply-To: <20040501150028.26C00EC44@slim.kubism.ku.dk>
References: <20040501150028.26C00EC44@slim.kubism.ku.dk>
Message-ID: <x28ygcjilc.fsf@biostat.ku.dk>

anthony@stat.sdu.dk writes:

> 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)

Eh?

> all(rlnorm(1000000, meanlog =  0.6931472, sdlog = 1) >= 0)
[1] TRUE

Try reproducing with a fixed random seed so that others have a chance
to check.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907


[Rd] Generating Lognormal Random variables (PR#6843)
Peter Dalgaard