Multiply by the standard deviation, i.e., the square root of the variance you want.
Roy W. Haas, Ph.D.
Department of Medicine
UT Health Science Center at San Antonio
7703 Floyd Curl Drive
San Antonio, TX 78229-3900
(210) 567-9272
-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of R.E. De Hoyos
Sent: Wednesday, June 02, 2004 1:10 PM
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/