Statalist The Stata Listserver


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

Re: st: pooled sample covariance matrix


From   Joseph Coveney <[email protected]>
To   Statalist <[email protected]>
Subject   Re: st: pooled sample covariance matrix
Date   Fri, 21 Jul 2006 13:39:21 +0900

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index