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

st: Re: saving correlation matrix


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: Re: saving correlation matrix
Date   Thu, 23 Dec 2004 07:45:28 -0500

mat accum c = x1-x10, nocons dev
mat rho = corr(c)
mat list rho

If you want to save these correlations as a variable, you can vech the matrix (see Nick Cox's routine (matodd??) for that) and then svmat.

Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html

On Dec 23, 2004, at 2:33 AM, Minyi wrote:


I am a new Stata user. If I ran a simple correlation matrix (for example,
corr x1-x10), is there a way to save the results of all the coefficient and
store them in one variable?

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