gen answer = mean + sqrt(var) * invnorm(uniform())
Nick
[email protected]
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of
> R.E. De Hoyos
> Sent: 02 June 2004 19:10
> To: [email protected]
> Subject: st: random number with a specific variance
>
>
> Hi,
>
> How can I generate a variable containing random numbers
> normally distributed
> and a variance different from 1 (like -invnorm(uniform())- but with a
> variance different from one)?
>
> Thanks,
>
> Rafa
> *
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/