Why Two-Way ANOVA?
Multiple Factors
e.g., Drug type (A, B, C)
e.g., Drug type × Dosage
Two-way ANOVA extends one-way by testing two independent variables simultaneously. This lets us see not just if each factor matters, but whether they interact - whether the effect of one depends on the level of the other.
Factorial Design
| Low Dose | Medium Dose | High Dose | |
|---|---|---|---|
| Drug A | Cell 1 | Cell 2 | Cell 3 |
| Drug B | Cell 4 | Cell 5 | Cell 6 |
| Drug C | Cell 7 | Cell 8 | Cell 9 |
A 3×3 factorial design has 9 'cells' - every combination of factor levels. Each cell contains multiple participants. Two-way ANOVA partitions variance into: Factor A, Factor B, A×B interaction, and error.
What Two-Way Tests
e.g., Does drug type matter (averaging across dosages)?
e.g., Does dosage matter (averaging across drugs)?
e.g., Does drug type's effect vary by dosage?
Two-way ANOVA produces three F-tests: one for each main effect and one for the interaction. The interaction is often the most interesting - it reveals whether factors combine non-additively.
Main Effects
What Are Main Effects?
A main effect is the overall effect of one factor, averaging (or collapsing) across levels of the other factor. It answers: 'Ignoring the other factor, does this factor matter?'
Calculating Main Effects
| Low | High | Row Mean | |
|---|---|---|---|
| Drug A | 20 | 40 | 30 |
| Drug B | 40 | 60 | 50 |
| Col Mean | 30 | 50 | 40 |
Main effect of Dose: High (50) > Low (30) → 20-point difference
Row means test Factor A (Drug), column means test Factor B (Dose). Here, both factors have 20-point main effects. But this doesn't tell us about interaction - whether the drug effect differs by dose.
Interaction Effects
The Key Concept
Interaction means the effect of one factor changes depending on the level of the other. In plots, parallel lines = no interaction; crossing or diverging lines = interaction present.
Real Interactions
Crossover interactions are most dramatic - they mean qualitative differences (which is 'best' changes). Ordinal interactions are quantitative - the ordering stays the same but magnitude differs.
What to Report
When there's a significant interaction, main effects can be misleading or even meaningless. Always check interaction first. If significant, describe the pattern rather than averaging across factors.
Reading ANOVA Output
The Output
| Source | SS | df | MS | F | p |
|---|---|---|---|---|---|
| Drug (A) | 200 | 2 | 100 | 5.0 | .012* |
| Dose (B) | 400 | 2 | 200 | 10.0 | .001* |
| A × B | 80 | 4 | 20 | 1.0 | .42 |
| Error | 720 | 36 | 20 | - | - |
Two-way ANOVA output shows three F-tests. Here: significant main effects of Drug (p=.012) and Dose (p=.001), but NO significant interaction (p=.42). Main effects are interpretable.
How to Report
"A 3 (Drug: A, B, C) × 3 (Dose: Low, Medium, High) between-subjects ANOVA revealed significant main effects of drug type, F(2, 36) = 5.0, p = .012, η² = .14, and dosage, F(2, 36) = 10.0, p = .001, η² = .28. The Drug × Dose interaction was not significant, F(4, 36) = 1.0, p = .42."
Always report: the design (factors and levels), degrees of freedom, F-value, p-value, and effect size (η²). Report the interaction test even if not significant - absence of interaction is informative.
Real-World Examples
Apply your knowledge to practical scenarios
Therapy × Medication Study
A study compares depression treatments: 2 therapy types (CBT, Psychodynamic) × 2 medication conditions (Drug, Placebo). Outcome is depression score reduction (higher = better).
Key Insights
- Significant interaction means main effects need qualification
- Plot the cell means to understand the pattern
- Clinical recommendations depend on the interaction pattern
Two-Way ANOVA Quiz
Test your understanding • Passing score: 70%