Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: create matrix from pwcorr command


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: create matrix from pwcorr command
Date   Thu, 29 Apr 2010 18:35:54 +0100

I don't know why you thought that would work. It's a very long way from
the syntax for -matrix-. 

Stata makes it difficult for you to do this, and with good reason. As
different correlations may be based on different sample sizes, the
correlations are not strictly comparable, and the resulting matrix is
typically unsuitable for multivariate analysis. It may not even be
positive semi-definite. 

But that aside, -matpwcorr- from SSC evidently does this for you. 

Nick 
n.j.cox@durham.ac.uk 

Tyler Frazier

I would like to create a matrix from the pwcorr command -- I tried

matrix m = pwcorr Var1 Var2 Var3 Var4 etc.... but that doesn't seem to
work. likewise for standard dev and mean


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index