StatLabStudent EditionUser guideGalleryFeaturesAbout

Factorial ANOVA and ANCOVA (GLM Univariate)

Compares the mean of one numeric outcome across the levels of one or more factors, optionally adjusting for covariates. Handles two-way and higher designs with interactions, unequal group sizes (Type III sums of squares) and ANCOVA.

Menu: Analyze → General Linear Model → Univariate…

When should I use it?

What are the assumptions?

How do I run it in StatLab?

  1. Move the outcome to Dependent variable and the grouping variables to Fixed factor(s).
  2. Add any covariates (numeric control variables).
  3. Under Post Hoc, choose the factors and tests (Tukey for equal variances, Games-Howell otherwise).
  4. Under EM Means, choose a comparison adjustment (Bonferroni is a safe default).
  5. Under Options, keep descriptive statistics, homogeneity tests and effect sizes.
  6. Add random factors (e.g. clinics or classrooms sampled from a larger population) under Random factor(s); each effect is then tested against the error term implied by the expected mean squares.
  7. Under Contrasts, choose a contrast (simple, deviation, difference, Helmert, repeated, polynomial) to test planned comparisons of the factor levels.
  8. Under EM Means, tick Simple effects to test each factor within each level of the others — the usual follow-up to a significant interaction.
  9. Under Post Hoc, Dunnett compares every group with one control group; S-N-K and R-E-G-W-Q give homogeneous subsets; Tamhane's T2 does not assume equal variances.
  10. Use a WLS weight when the cases have known, unequal precision; choose Type II sums of squares for unbalanced designs without interactions, Type I for a planned order of entry.

How do I read the output?

OutputMeaning
Levene's Test of Equality of Error VariancesSig. < .05 means the cell variances differ.
Tests of Between-Subjects EffectsF and Sig. for each main effect and interaction; Partial Eta Squared is the effect size (.01 small, .06 medium, .14 large).
Estimated Marginal MeansGroup means adjusted for the other factors and covariates, with confidence intervals and pairwise comparisons.
Multiple ComparisonsPost hoc tests on the observed means of each factor.
Profile plotNon-parallel lines suggest an interaction.
Expected Mean SquaresWith random factors: how each mean square is built from the variance components; the footnotes show which mean squares form each error term.
Contrast Results (K Matrix) / Test ResultsEach planned contrast's estimate, standard error, significance and confidence interval, and the joint F test.
Univariate Tests (simple effects)F test of one factor at each level of the other factor(s), followed by pairwise comparisons.
Homogeneous SubsetsGroups listed by mean; groups in the same column do not differ significantly.

What are common mistakes?

Open StatLab   All guide topics