[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: covariance matrix
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/