Statistics Glossary → Types of sums of squares (Type I, II, III)
Types of sums of squares (Type I, II, III)concept
Options that set, in unbalanced designs, which other effects in the model an effect's sum of squares is adjusted for.
When all cells are the same size (a balanced design) the factors are independent of one another and all three types give the same result. In an unbalanced design the factors become correlated, and the question of how much of the explained variance belongs to an effect can be answered in different ways. Type I (sequential) adjusts each term only for the terms entered before it, so changing the order changes the result. Type II adjusts each main effect for the other main effects but leaves out the interactions that contain it. Type III adjusts each effect for all other effects, interactions included, and needs sum-to-zero (effect) coding to give correct results.
Type II is more powerful for main effects when there is no interaction and respects the principle of marginality. Type III compares unweighted (equally weighted) marginal means even when an interaction is present; it is the default in SPSS and SAS. Type I makes sense when the terms have a natural order (e.g. covariate first, then factor, or polynomial terms). The type used should be reported, since it is the most common reason results differ between software packages.
An everyday example
A school compares scores under two teaching methods, but method A had 40 girls and 10 boys while method B had 15 girls and 35 boys. If girls generally score higher, part of method A's apparent advantage comes from the gender mix. In Type I with method entered first, this mix is credited to the method; in Types II and III the method effect is computed after adjusting for gender.
In MerQur
Offered as the 'Sum of squares (SS) type' option (Type III, Type II, Type I) in two-way ANOVA and ANCOVA, as 'SS method' (Type I / Type III) in the nested and crossed mixed models, and as ANOVA (Type I, EMS) under 'Estimation method' in variance components analysis. Mixed-design ANOVA computes the sum of squares of the within-subject main effect with Type III in unbalanced groups; in response surface regression the 'Decomposition order' sets the order of the Type I terms. In repeated measures ANOVA and MANOVA the group factors enter with Type III; logistic, Poisson / negative binomial and probit regression and GEE give Type III effect tests, multinomial logistic regression gives Type II effect tests, and Bayesian ANOVA gives a Type II classical F table.
Analyses where this concept appears
Two-Way ANOVARepeated Measures ANOVAMixed-Design ANOVA, Split-PlotMANOVAANCOVALogistic RegressionPoisson / Negative Binomial Regression (Count Regression)Multinomial Logistic RegressionNested Mixed Model (Nested LMM, Multi-Level Hierarchical Mixed Model)Crossed Mixed Model (Crossed LMM, Crossed Random Effects Mixed Model)Generalized Estimating Equations (GEE)Variance Components Analysis (VARCOMP)Probit RegressionBayesian ANOVAResponse Surface Regression (RSREG)
Related concepts
Analysis of variance (ANOVA) tableInteraction effectCovariate