Statalist The Stata Listserver


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

Re: st: regression with correlation matrix


From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: regression with correlation matrix
Date   Mon, 09 Apr 2007 18:55:59 -0500

At 06:56 PM 4/9/2007, Caleb Southworth wrote:
Is there a way to transfer a correlation matrix directly into a matrix
without retyping the results?

something like - mat def Rx = -

Does stata have an ado file that does regression with correlation
coefficients (a la SPSS)?

That is, I would generate the standardized betas something like

-mat def b=inv(Rx)*Ry   where Rx is the matrix of correlations among
Xs and Ry is the vector of correlations with Y.
See pages 8-10 of

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

or else possibly

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

The first shows you how to analyze a correlation matrix when you don't have the original raw data, e.g. you are working from a printed article. The 2nd shows you how you can use matrix functions to create a correlation matrix and do your own regression analysis.

Incidentally, -regi- (where i = immediate) would be a logical command for Stata to have, given that it has other immediate commands (e.g. -ttesti-), but as far as I know no one has written it.


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

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