Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: RES: generating a variable with pre-specified correlations with other two (given) variables


From   fjc <[email protected]>
To   [email protected]
Subject   Re: st: RES: generating a variable with pre-specified correlations with other two (given) variables
Date   Wed, 31 Aug 2011 17:23:40 -0300

Hi,

Thank you all for the quick and useful responses.

1. I can do with covariances instead of correlations, so the methods
proposed by Tirthankar and Richard work fine.

2. Still, if I wanted to stick to correlations, I think one can apply
the same ideas (as suggested in the previous responses):

Let z be given by

(0) z = a * x + b * y + c * u,

where x and y are the two variables in the dataset and u is a
zero-mean random variable independent of x and y.



© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index