Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Draw new variable with fixed correlation to an existing variable


From   Rachel <academicgirl@gmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: Draw new variable with fixed correlation to an existing variable
Date   Wed, 15 Aug 2007 15:39:36 -0400

Suppose I have an existing variable x1, which is distributed as a
standard normal.  I wish to create a new variable x2 (also standard
normal) such that corr(x1,x2)=0.5.  ?Is there a way to do this in
Stata?

Thanks,
Rachel
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index