[R] random normally distributed values within range

2008-10-06 Thread Achaz von Hardenberg
Hi all, I need to create 100 normally distributed random values (X) which can not exceed a specific range (i.e. 0XY). 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

Re: [R] random normally distributed values within range

2008-10-06 Thread Pedro.Rodriguez
:[EMAIL PROTECTED] On Behalf Of Achaz von Hardenberg Sent: Monday, October 06, 2008 6:55 PM To: r-help@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. 0XY

Re: [R] random normally distributed values within range

2008-10-06 Thread Rolf Turner
On 7/10/2008, at 11:54 AM, Achaz von Hardenberg wrote: Hi all, I need to create 100 normally distributed random values (X) which can not exceed a specific range (i.e. 0XY). With rnorm I cannot specify Max and min values among which values have to stay, like in runif so does some other simple

Re: [R] random normally distributed values within range

2008-10-06 Thread Matthias Kohl
one could also use the Truncate-methods of package distr; cf. http://tolstoy.newcastle.edu.au/R/e5/help/08/09/1870.html If the situation is extreme Peter Daalgard gave some sophisticated code at http://tolstoy.newcastle.edu.au/R/e5/help/08/09/1892.html Best, Matthias Rolf Turner wrote: On