When to use it
You have one continuous response and TWO categorical factors and want to test each main effect plus whether the factors interact.
When not to: You only have one factor (use one-way ANOVA), the design has fundamentally unbalanced, near-empty cells that make the model rank-deficient, or the residuals badly fail normality (consider a rank-based factorial approach instead of the ordinary F-tests).
Step by step
Open it from the menu
Click Analyze in the menu bar; under Means choose Two-Way (Factorial) ANOVA.
Fill in the form
Choose the columns: What you measured, First grouping column, Second grouping column. The form lists only columns whose type fits each field.
Check the options
The options start at their defaults: Alpha, Include interaction, Sum-of-squares type, Tukey HSD comparisons, Also compare the cells. Change one only when your question needs it.
Run the analysis
Press Run analysis. The Result Card opens on its Results tab.
What to choose in the form
| What you measured Response required | One numeric column. The continuous response variable |
|---|---|
| First grouping column Factor A required | One categorical column. First categorical factor (2+ levels) |
| Second grouping column Factor B required | One categorical column. Second categorical factor (2+ levels) |
| Alpha | Significance threshold Default: 0.05. |
| Include interaction | Fit the A × B interaction term Default: on. |
| Sum-of-squares type | Type of sums of squares for unbalanced designs Default: 2. |
| Tukey HSD comparisons | Pairwise Tukey HSD comparisons of each factor's levels: shown for an effect whose F test is significant, always, or never. Default: When the effect is significant. |
| Also compare the cells | Also compare every A × B combination (shown under the same rule, judged on the interaction's F test). Default: off. |
How to read the card
The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.
What it assumes
- Independence of observations
If it does not hold: Observations within and across cells must be independent; violating this invalidates every F-test in the table regardless of what the normality and variance checks show.
How to check: Not checkable from the data alone: it is a property of how the data were collected.
- Normality (of residuals, not of the raw data)
If it does not hold: Non-normal residuals distort the true Type I error rate of the main-effect and interaction F-tests.
How to check: Shapiro-Wilk on the model residuals (sampled for large n), reported directly on the card.
- Homogeneity of variance (homoscedasticity)
If it does not hold: Unequal variance across the factor-combination cells, especially with unbalanced cell sizes, distorts the F-tests' true Type I error rate.
How to check: Levene's test (median-centered) across cells, computed when at least two cells have 2+ observations; reported directly on the card.
A worked example
Testing customer satisfaction as a function of training program (2 levels) and region (3 levels), with their interaction, on a balanced design.
Result: Training program: F(1,144)=8.2, p=.005, partial eta-squared=0.05; Region: F(2,144)=1.1, p=.34; Training x Region interaction: F(2,144)=6.7, p=.002, partial eta-squared=0.09.
Because the interaction is significant, the training program's effect should NOT be read as a single uniform boost across all regions; simple-effects analysis within each region is needed to see where the training actually helped, rather than reporting the overall training main effect (F=8.2) as if it applied equally everywhere.
From the Statistics Library.
The code tabs
Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.
Understand the statistics
Ask Oobi
Type one of these into Ask Oobi beside your data:
- Does satisfaction depend on the training program, the region, and does the training effect differ by region?
- Explain the two-way (factorial) ANOVA in plain words.
- What does interaction effect mean?
Last reviewed November 16, 2026.
