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

Re: st: estimating data for a given correlation coefficient


From   Nomoreno <[email protected]>
To   [email protected]
Subject   Re: st: estimating data for a given correlation coefficient
Date   Thu, 20 Jan 2005 09:54:03 -0500

First you need to define the correlation matrix you desire, then you can use -drawnorm- in STATA to generate the data you wish for different panels of the variable, given the correlation matrix. For more information, you can check out -drawnorm- in STATA.

I hope it helps.



[email protected] wrote:

Dear all
I want to create some datasets of, say 200 observations, with defined correlations. How do I go about doing it. I could not find anything in Stata FAQ or the manuals. Is it possible to do this within Stata.
Many thanks.

Don Spady

Donald Spady MD, MSc

Department of Pediatrics & Public Health Sciences
2C3.92 WMC, University of Alberta
Edmonton, Alberta, Canada
T6G 2R7

780-407-1244:O
780-407-7136:F

Nature has no reset button.

*
* 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