Re: st: RE: normal distributions

--- On Thu, 19/3/09, Rodrigo Briceño wrote:
> I tried with and without spaces,
> because the error appears in any case.
> . gen rn = rnormal(0,9)
> Unknown function rnormal()
> r(133);
Are you using Stata version 10.1? If you
don't say which version you use, then we
will assume that you use the latest version
as is discussed in the statalist FAQ.
If you don't have Stata 10.1, you can either
update (which is free if you have Stata
10.0, just type in Stata -update all-, or
you can type:
gen rn = invnorm(uniform())*9 + 1
to get draws from a normal distribution
with a mean of 1 and a standard deviation
of 9.
-- Maarten
-----------------------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/