Two-Way ANOVA in SPSS

This tutorial shows the steps of how you can do two-way ANOVA in SPSS. A two-way ANOVA is used to estimate how a quantitative variable (i.e., Y) changes according to the levels of two categorical variables (X1 and X2).

This tutorial uses hypothetical data of brand (X1) and City (X2) and sales as Y. You can download the data using this link.

Steps of two-way ANOVA in SPSS

Step 1: Select “Univariate”

“Analyze”, then “General Linear Model”, then “Univariate.”

Step 1 of Two-Way ANOVA in SPSS
Step 1 of Two-Way ANOVA in SPSS

Step 2: Drag variables

Drag variables of City and Brand as Fixed Factor(s) and sales as Dependent Variable.

Step 2 of Two-Way ANOVA in SPSS
Step 2 of Two-Way ANOVA in SPSS

Step 3: Click “Descriptive statistics”

Click “Options” then “Descriptive statistics.” Then, click “Continue” and “OK.”

Step 3 of Two-Way ANOVA in SPSS

Step 4: Interpret the output

The following is the output. The interaction effect is F(1, 19) = 6.34, p = 0.023. Thus, the interaction of Brand * City is significant.

Output of Two-Way ANOVA from SPSS

However, what does it mean by saying that the interaction effect is significant? We need to put the 4 means into a table to better understand it. These 4 means are from the table of “Descriptive Statistics.” We can use the following table to better summarize the results.

City 1City 2
Brand 148.07.0
Brand 26.86.6
Difference between Brand 1 and Brand 248.0-6.8=41.27.0-6.6=0.4
Interpret Interaction Effect of two-way ANOVA

For City 1, the sales difference between Brand 1 and Brand 2 is 41.2. For City 2, the difference is 0.4. Therefore, a significant interaction means that 41.2 and 0.4 are statistically significant.

Step 5: Plot Interaction for two-way ANOVA

We can further plot the interaction for two-way ANOVA in SPSS. Such a plot can better help us understand the nature of the interaction. The following is the plot. Regarding how to plot it, please refer to another tutorial here.

Interaction plot for two-way ANOVA

Further Reading

The following tutorials are in SPSS: