Section 10: The Unequal Variance ANOVA Model 1. Checking Equality of Variance in the ANOVA Model 2. Testing Means with the Unequal Variance Model 3. Homogeneity of Variance Tests 4. Weighted Least Squares 5. How can PROC MIXED handle this unequal variance situation? 6. Multiple Comparisons in the Unequal Variance ANOVA Model 7. Dispersion Effects Model One of the three assumptions of an Analysis of Variance (ANOVA) model listed in Section 1 (found at http://www.uoregon.edu/~robinh/glm01_assumpt.txt ) "The residuals have equal variances across groups". This section examines the several methods to check this assumption and a proposed solution if indeed variances across groups should not be considered equal. 1. Checking Equality of Variance in the ANOVA Model For an ANOVA model with one "fixed" factor and at least two observations for each level of that factor, the MEANS statement from PROC GLM allows you to request several types of homogeneity of variance tests (HOV). These tests help you determine if one of the primary assumptions of ANOVA models -- equal variances across groups -- can be assumed true. Heterogeneity of variance tests listed here are defined only for one-way ANOVAs. With k factors (k>1) it is possible to re-code the data from K-way ANOVA so that there is a single variable that acts as a surrogate for all K effects and then compute heterogeneity of variance tests on this recoded data. However, the greater the complexity of the design, the further you may diverge from the underlying assumptions of the test. To illustrate with two fixed factors, (A and B), you can recode them into one variable that uniquely defines all possible combinations of levels of the two factors. First, sort the factors by their respective levels, with factor B the inner variable changing levels for each level of A. If factor A has 2 levels and factor B has 3 levels combine them into one 6-level factor which defines all 6 possible combinations: A B class_var 1 1 1 1 2 2 1 3 3 2 1 4 2 2 5 2 3 6 If the factors are numerically coded as above, a simple math transformation is evident: class_var = 3*(A-1) + B where 3 is the number of levels of the inner factor B. (This type of recoding factors has other applications, esp. when plotting data, so recognizing how to do it quickly can be a big help.) The PROC GLM commands to test for homogeneity of variance in this situation are the following: PROC GLM; CLASS class_var; MODEL y= class_var; MEANS class_var / HOVTEST= < option > ; RUN; HOVTEST= is an option entered on the MEANS statement. The classification factor must be listed on the CLASS, MODEL, and MEANS statements. If you have a two-way ANOVA (or with more factors), the HOVTEST option on the MEANS statement will not produce any test. The available choices for homogeneity of variance tests are listed below. They request HOV tests for a one-way ANOVA where the groups are defined by the levels of the factor entered on the MEANS statement. Choices for HOVTEST= include: HOVTEST=bartlett HOVTEST=levene < ( TYPE= abs | square )> HOVTEST=bf HOVTEST=obrien < ( W=number )> Specify the particular test you want for the