[R] random normally distributed values within range

Pedro.Rodriguez at sungard.com Pedro.Rodriguez at sungard.com
Tue Oct 7 01:52:34 CEST 2008


Hi Achaz,

Maybe you are interested in the generalized beta distribution?

To the best of my knowledge, there is no way to restrict the values of
normal deviates, since one may end up with a different distribution.

Regards,

Pedro 

 



-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of Achaz von Hardenberg
Sent: Monday, October 06, 2008 6:55 PM
To: r-help at r-project.org
Subject: [R] random normally distributed values within range

Hi all,
I need to create 100 normally distributed random values (X) which can  
not exceed a specific range (i.e. 0<X<Y).
With rnorm I cannot specify Max and min  values among which values  
have to stay, like in runif so does some other simple way exist to do  
this with normally distributed random values?

thanks a lot in advance,

Dr. Achaz von Hardenberg
------------------------------------------------------------------------

--------------------------------
Centro Studi Fauna Alpina - Alpine Wildlife Research Centre
Servizio Sanitario e della Ricerca Scientifica
Parco Nazionale Gran Paradiso, Degioz, 11, 11010-Valsavarenche (Ao),  
Italy

______________________________________________
R-help at 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.



More information about the R-help mailing list