Re: [R] random numbers between 0 and 1

2009-10-21 Thread Rolf Turner
On 22/10/2009, at 8:25 AM, carol white wrote: Hi, To generate random numbers between 0 and 1, do you use rnorm followed by dnrom? for ex, for 10 variables a = rnorm(10) a [1] -0.87640764 -0.95842391 -1.33434559 -0.63844932 -1.69829393 0.80010865 [7] -0.01026882 -0.23887516 2.2991260

Re: [R] random numbers between 0 and 1

2009-10-21 Thread Barry Rowlingson
On Wed, Oct 21, 2009 at 8:37 PM, Gábor Csárdi wrote: > I would suggest to use the generator at > http://submoon.freeshell.org/pix/valium/dilbert_rng.jpg > and subtract 8.5. You may laugh (indeed I did) but some medical trials have used (and poss still do) telephone-a-human random numbers. When d

Re: [R] random numbers between 0 and 1

2009-10-21 Thread Gábor Csárdi
I would suggest to use the generator at http://submoon.freeshell.org/pix/valium/dilbert_rng.jpg and subtract 8.5. Best, Gabor On Wed, Oct 21, 2009 at 9:25 PM, carol white wrote: > Hi, > To generate random numbers between 0 and 1, do you use rnorm followed by > dnrom? for ex, for 10 variables >

Re: [R] random numbers between 0 and 1

2009-10-21 Thread Erik Iverson
ubject: [R] random numbers between 0 and 1 > > Hi, > To generate random numbers between 0 and 1, do you use rnorm followed by > dnrom? for ex, for 10 variables > > a = rnorm(10) > > a > [1] -0.87640764 -0.95842391 -1.33434559 -0.63844932 -1.69829393 > 0.80010865 >

[R] random numbers between 0 and 1

2009-10-21 Thread carol white
Hi, To generate random numbers between 0 and 1, do you use rnorm followed by dnrom? for ex, for 10 variables a = rnorm(10) > a [1] -0.87640764 -0.95842391 -1.33434559 -0.63844932 -1.69829393 0.80010865 [7] -0.01026882 -0.23887516 2.29912600 -1.38352143 > dnorm(a) [1] 0.27171985 0.25202507 0.