[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: normal distributions

From   Maarten buis <>
Subject   Re: st: RE: normal distributions
Date   Thu, 19 Mar 2009 17:55:11 +0000 (GMT)

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


*   For searches and help try:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index