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   Donald Spady <[email protected]>
To   [email protected]
Subject   Re: st: estimating data for a given correlation coefficient
Date   Thu, 20 Jan 2005 10:37:42 -0700

Thanks to all who replied, I found out just what I wanted. corr2data did the trick.
Don Spady

At 08:24 AM 1/20/2005, you wrote:

At 09:54 AM 1/20/2005 -0500, Nomoreno wrote:
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.
Perhaps better is -corr2data-. -drawnorm- will draw a random sample from a population with the correlations you give it; because of sampling variability the sample correlations will not be identical to the population correlations. If that is what you want, then fine. But, if you want a data set that has exactly the correlations you specify, then use -corr2data-. This might be the case if, say, you want to replicate the results from a published analysis where the correlations are included in the text.

A discussion of the use of -corr2data- can be found on pp. 8-10 of

http://www.nd.edu/~rwilliam/stats1/OLS-Stata.pdf


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: [email protected]
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc

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




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