Statalist


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

st: covariance matrix


From   David Kantor <[email protected]>
To   Statalist <[email protected]>
Subject   st: covariance matrix
Date   Mon, 17 Dec 2007 13:41:42 -0500

Hi everyone,
How can I capture the covariance matrix of a set of variables?
If I do
corr varlist, cov
I get returned scalars of the variance and covariance of the first two variables. I though I should be able to get the whole matrix.

Am I missing something?

I suppose I can compute the covariance of each pair of variables and deposit the results into a matrix, but I thought that I wouldn't need to do that.
Thanks if anyone can help.
--David

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