SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 24987: Test equality of independent covariance matrices

DetailsCodeResultsAboutRate It

Test the Equality of Independent Covariance Matrices

Contents: Purpose / Requirements / Details / See Also / References
PURPOSE:
Test equality of two or more independent covariance matrices under the assumption of normality.
REQUIREMENTS:
Base SAS and SAS/STAT, Version 7 or later. This example can be run in previous releases by removing the ODS statements.
DETAILS:
This example uses the POOL=TEST option in PROC DISCRIM to request Bartlett's modification of the likelihood ratio test of the homogeneity of the within-group covariance matrices. The test is unbiased. However, it is not robust to nonnormality.
SEE ALSO:
As described in this Frequently-Asked Question, tests of equal variances can be accomplished in PROC GLM using the HOVTEST= option. Variances can also be modeled simultaneously with the mean. For only two independent groups, a test of equal variances is provided in PROC TTEST.
REFERENCES:
Anderson, T.W. (1984), An Introduction to Multivariate Statistical Analysis, Second Edition, New York: John Wiley & Sons, Inc.

Morrison, D.F. (1976), Multivariate Statistical Methods, New York: McGraw-Hill.

Perlman, M.D. (1980), "Unbiasedness of the Likelihood Ratio Tests for Equality of Several Covariance Matrices and Equality of Several Multivariate Normal Populations," Annals of Statistics, 8, 247 -263.




These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.