Factorial ANOVA Follow-Up Tests

Canonical reference: Maxwell, Delaney, & Kelley (MDK) ref/mdk

The three omnibus tests of a factorial design answer averaged questions: whether the marginal means of each factor differ, and whether the effect of one factor depends on the level of the other. None of them locates a difference. A significant interaction says the simple effects of at least one factor are unequal, but not where the inequality lies; a significant main effect of a factor with more than two levels says its marginal means differ somewhere, but not which ones. Follow-up tests supply the location. This page develops the two follow-up families for the balanced between-subjects two-way design — simple effects for probing an interaction, and contrasts on marginal means for pursuing a main effect — together with the error control and reporting conventions that accompany them.

Throughout, factor A has levels indexed by and factor B has levels indexed by , with observations in each of the cells and observations in total. is observation in cell , is that cell’s mean, and are the row and column marginal means, and is the grand mean. Every test below uses , the pooled within-cell mean square of the omnibus full model, on error degrees of freedom. The design, the omnibus hypotheses and models, the variability partition, the effect sizes, and the unequal-cell-size material are developed in Factorial ANOVA; the general contrast machinery specialized here is in Linear Contrasts.

The running example is a between-subjects design crossing music (neutral, suspenseful) with a jump scare (absent, present), observations per cell and in total:

Jump scare absentJump scare presentMarginal
Neutral music
Suspenseful music
Marginal

The omnibus analysis, constructed in Factorial ANOVA, gives:

SourceSSdfMS
Music (A)
Jump scare (B)
A B
Within cells
Total

so on degrees of freedom.

Choosing the follow-up question

The appropriate follow-up follows from the pattern of omnibus results:

  • Significant interaction — simple effects. When the factors interact, the effect of each factor is conditional on the level of the other, so the follow-up holds the other factor fixed and compares cell means within one of its levels.
  • No interaction, significant main effect with three or more levels — comparisons among that factor’s marginal means. The omnibus says the marginal means are not all equal; contrasts locate which ones differ.
  • No interaction, significant main effect with two levels — no further follow-up. With two levels the omnibus already compares the two marginal means, so the main effect is the comparison (see Contrasts on marginal means).

A significant interaction does not say where the nonadditivity lies. Different simple-effect patterns — an effect at only one level of the other factor, traces that spread apart without crossing, or a disordinal crossover — can all produce the same significant , because the omnibus interaction spends its numerator degrees of freedom across every direction of nonadditivity at once. Probing with simple effects is what converts that aggregate rejection into statements about particular levels. Whether follow-up testing should be contingent on omnibus significance at all is a general gating question addressed in Multiple Comparisons; the routing here takes the omnibus stage as completed.

The two stages also use different significance criteria, and their p-values are not interchangeable. The omnibus tests are each conducted at a per-test level (in the running example , with critical value ), while follow-up tests are conducted at a Bonferroni-adjusted per-test level within a declared family. The interaction’s is evaluated against the omnibus , not against the adjusted simple-effect criterion of developed below.

Simple effects

The simple effect of factor A at level of factor B is the effect of A among the cell means of column : the null hypothesis is , and in a design the test compares exactly two cell means. The simple effect of B at level of A is defined symmetrically within row . Where a main effect averages over the other factor, a simple effect holds it fixed — the variation being averaged over is exactly what the interaction tests.

The sum of squares for the simple effect of A at level is

where (read “A given ”) and denote the two simple-effect sums of squares. The deviations are taken from the within-level marginal mean — the average of the cell means being compared, which is what the simple-effect null predicts for each of them — not from the grand mean. The numerator degrees of freedom are and , one fewer than the number of cell means compared, and the error term is the pooled of the omnibus full model:

referred to the distribution with and degrees of freedom (and symmetrically for ). In restricted-model terms, each simple-effect test compares the omnibus full model with a restriction that ties together the cell means within one level of the other factor: the full model and its error never change, only the restriction does — the df bookkeeping pattern tabulated in Crosswalk of ANOVA Quantities. As with a single contrast, every cell’s within-cell variability contributes to , including cells outside the tested level.

For the running example, the simple effect of music when the jump scare is absent uses the column mean :

The four simple effects are:

Simple effectCell means comparedSSDecision at
Music, scare absent vs retained
Music, scare present vs rejected
Jump scare, neutral vs rejected
Jump scare, suspenseful vs rejected

where the decision criterion is the family-adjusted level derived in the next section. The results locate the interaction. The music effect is conditional: when the jump scare is absent, the -point difference in cell means provides insufficient evidence of a population difference at the adjusted level; when it is present, fear is higher under the suspenseful music ( vs ). The jump-scare effect, by contrast, is present within both music conditions, and larger under the suspenseful one ( points vs points). The two music simple effects — and points — are exactly the kind of inequality the significant interaction detects; the simple-effect tests show which comparison carries it.

In a balanced design, the simple-effect sums of squares of one factor decompose into that factor’s main effect plus the interaction:

For the running example,

The identity serves as an arithmetic check on a hand-worked table — the same additivity habit as the omnibus partition — and makes the bookkeeping visible: the simple effects of a factor across all levels of the other factor jointly carry exactly that factor’s main-effect and interaction variability, so unequal simple effects are where lives.

Error control for simple-effect families

Testing several simple effects multiplies the opportunities for a Type I error, so each family is tested under a correction. The convention of this page’s canonical reference defines one family per factor: the simple effects of A (one per level of B) form one family, and the simple effects of B form another. Bonferroni within each family tests each simple effect at

so the divisor is the number of tests in the family, which equals the number of levels of the other factor. In the running example , so each family has two tests and a familywise level of gives per test — the criterion used in the table above, equivalently the critical value in place of the unadjusted . The Bonferroni mechanics, and the comparison with other procedures, are covered in Multiple Comparisons; what factorial follow-ups add is the family definition.

That definition is a declared choice, not a universal rule. Per-factor families are the recommendation of the canonical reference, not the only defensible grouping: all simple effects could be pooled into a single family (dividing by ), or the error rate could be allocated differently across families and stages. What the correction requires is that the family be defined independently of which results look interesting and that the divisor match the family’s full size, regardless of how many tests are ultimately reported — the same planned-versus-post-hoc discipline described in Multiple Comparisons.

When the tested factor has more than two levels

With levels of the tested factor, a simple effect is itself an omnibus test: it carries numerator degrees of freedom ( for a three-level factor), and rejecting it says that at least one of the population cell means in that level of the other factor differs from the rest — not which one. The rejection localizes the effect to one level of the other factor, but locating it among the compared means requires further comparisons: pairwise or complex contrasts among the cell means within that level, each of the form

where is the contrast among the cell means of column and each compared mean rests on observations. Each contrast is tested against the same pooled with and degrees of freedom. The general machinery — coefficient choice and scaling, confidence intervals, unequal- and unequal-variance forms — is in Linear Contrasts, and the multiplicity control for these within-level comparisons follows the same family rules as any other set of contrasts (Multiple Comparisons). Everything above applies symmetrically to simple effects of B with levels.

Interpreting main effects when an interaction is present

All three omnibus tests are reported whether or not the interaction is significant — the main-effect s remain part of the summary of the design. What changes with a significant interaction is interpretation: a main effect averages over the other factor, and when the averaged simple effects are unequal, the average may not describe any level of it. How much of a problem that is depends on the pattern:

  • A disordinal (crossing) interaction has traces that cross within the observed range of the other factor, so the simple effects of the traced factor differ in sign. The main effect averages oppositely signed effects and can describe neither level — a null main effect can accompany two strong simple effects in opposite directions.
  • An ordinal (noncrossing) interaction has traces that do not cross within the observed range, so the simple effects share direction. The direction of the main effect then remains consistent with every simple effect, and the main effect may continue to support a directional statement — but its magnitude is still an average of heterogeneous simple effects.

The running example is ordinal. The jump-scare simple effects are points under the neutral music and points under the suspenseful one — same direction, different sizes — so the -point main effect ( vs ) is the average of a -point and a -point effect and matches neither condition exactly. Ordinal interactions therefore soften rather than remove the caution: main-effect direction may be interpretable, while main-effect magnitude conceals the heterogeneity that made the interaction significant.

Two qualifications keep the classification honest. First, crossing is evaluated over the observed range of the other factor; traces that fail to cross within that range may cross outside it. Second, whether traces cross depends on the response measurement scale, since a monotone transformation such as a logarithm or reciprocal can convert a noncrossing pattern into a crossing one. Ordinal versus disordinal is thus a description of the plotted data on its scale and range, not an invariant property of the effects. The practical rule is a matter of degree rather than a blanket prohibition or a blanket permission: with a significant disordinal interaction, interpretation belongs to the simple effects; with a significant ordinal interaction, main-effect statements remain reportable to the extent that the heterogeneity among the simple effects is acknowledged alongside them.

Contrasts on marginal means without an interaction

When the interaction is absent and a significant main effect has three or more levels, the follow-up compares that factor’s marginal means with the standard contrast machinery:

and symmetrically . The bookkeeping that changes from a one-way contrast is the sample size: a marginal mean no longer rests on observations. In a balanced design each row marginal mean averages the observations of its cells, and each column marginal mean averages observations, so these products enter the sums of squares:

Each contrast is tested as with and degrees of freedom — the same pooled error and denominator df as every other follow-up on the design.

In the running example, the two-level marginal contrast for suspenseful versus neutral music, , gives with observations per marginal mean, so

exactly the omnibus main-effect sum of squares and . With two levels, the one possible marginal contrast is the main-effect test, which is why a significant two-level main effect needs no further follow-up. For factors with more than two levels, Tukey’s procedure fits an all-pairwise family of marginal comparisons and Bonferroni fits a small set of targeted comparisons declared in advance; the mechanics and the choice between them are in Multiple Comparisons.

These marginal comparisons presuppose an absent or negligible interaction: with a significant interaction, marginal means average heterogeneous simple effects, and a contrast on them answers a question that may not describe any level of the other factor — the routing above assigns that case to simple effects instead. With unequal cell sizes, an additional question arises first, namely whether marginal means should be sample-size-weighted or equally weighted, and the corresponding main-effect tests come in Type I, II, and III variants; that material is covered in Factorial ANOVA.

Reporting

A complete report pairs the omnibus stage with the follow-up stage. The omnibus tests are reported first — each main effect and the interaction with its , degrees of freedom, -value, and an effect size, the convention of the canonical reference being to pair each omnibus with partial (defined, with , in Factorial ANOVA). For the running example:

A two-way between-subjects ANOVA showed significant main effects of music, , , , and jump scare, , , . The music jump-scare interaction was also significant, , , , indicating that the effect of music depended on whether a jump scare was present.

The follow-up report states the family and the adjusted criterion before any simple-effect result, then reports each simple effect with its cell means, , degrees of freedom, -value, and an interpretation conditional on the level of the other factor:

Simple effects of music were tested within each jump-scare condition with a per-family Bonferroni adjustment of per test. Music means differed when a jump scare was present, , (suspenseful , neutral ), but there was insufficient evidence of a difference when the jump scare was absent, , (suspenseful , neutral ). Simple effects of jump scare, tested within each music condition at the same adjusted level, showed higher fear with a jump scare under the neutral music, , ( vs ), and under the suspenseful music, , ( vs ).

The closing interpretation follows the conditional logic of the design rather than the marginal averages: the effect of the music depends on the presence of a jump scare, and the jump scare increases fear within both music conditions, more strongly under the suspenseful one.

  • Factorial ANOVA: the two-way design, the omnibus models and tests, and partial , and unequal cell sizes including the Type I/II/III variants.
  • Linear Contrasts: the general contrast machinery — coefficients, , intervals, and unequal- forms — specialized here for cell means and marginal means.
  • Multiple Comparisons: the Bonferroni and Tukey procedures, family definition and planned-versus-post-hoc discipline, and the role of omnibus gating.
  • Crosswalk of ANOVA Quantities: the naming and degrees-of-freedom bookkeeping shared by every test on this page.