Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: random number with a specific variance


From   "Haas, Roy W" <[email protected]>
To   <[email protected]>
Subject   st: RE: random number with a specific variance
Date   Wed, 2 Jun 2004 13:18:14 -0500

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/



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