Raphael Fraser wrote:
I have the following data as shown below and would like to calculate the
pooled sample covariance matrix and the corresponding estimated correlation
matrix. In SAS this would be done using PROC DISCRIM. Can any one help?
[dataset redacted]
--------------------------------------------------------------------------------
-rename- your dependent variable so that they are repeated
measurements, -reshape- them long, and perform a repeated-measures ANOVA
using -anova , repeated()-.
The pooled covariance matrix will be returned in -e(Srep)-.
If you run into difficulties, then I can privately send you a worked example
using Fisher's iris dataset that matches the pooled covariance matrix shown
in http://v8doc.sas.com/sashtml/stat/chap25/sect28.htm , but the dataset is
too big to be posting the illustrative worked example to Statalist.
Joseph
*
* 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/