Plot Interaction Effects of Categorical Variables in SPSS

This tutorial shows how you can plot interactions of categorical variables in SPSS. That is, the 2 independent variables (IVs) are categorical variables and the dependent variable is numerical.

Since the IVs are categorical variables, we are going to use bar charts to plot the interaction effect. For this tutorial, you can download the dataset from this GitHub link to practice.

  1. Choose “Clustered Bar”
    We are going to use a bar chart to plot the interaction. You need to first choose the “Clustered Bar”, see below.
    Plot Interaction effects of Categorical Variables in SPSS (step 1)
  2. Drag variables into the x-axis and y-axis
    Drag one categorical IV (e.g., City) into the x-axis and the other categorical IV (e.g., Brand) into the “Cluster on X set color”. Then, drag the dependent variable (e.g., sales) on the y-axis. Finally, click OK.
    Plot Interaction effects of Categorical Variables in SPSS (step 2)Plot Interaction Effects of Categorical Variables in SPSS (step 2)
  3. Final bar chart plot
    Then, we can see the final plot shown below. We can see that IV1 City is on the x-axis, whereas IV2 Brand is the legend, which uses two different colors (Blue and Green) to indicate two brands. The y-axis is the dependent variable of sales.
    Final interaction plot for 2 categorical variables in SPSSFinal interaction plot for 2 categorical variables in SPSS
  4. Interpretation of interaction effects of two categorical variables
    One way to interpret the interaction plot (or, interaction effect) is based on mean differences. We can calculate the means of 4 cells to understand the meaning of the interaction. We can use the following table to better summarize the results.
    For Brand 1, the sales difference between City 1 and City 2 is 41.1. For Brand 2, the difference is 0.2. Therefore, a significant interaction means that 0.2 and 41.1 are statistically significant.
Brand 1Brand 2
City 148.06.8
City 27.06.6
Difference between City 1 and City 248.0-7.0=41.06.8-6.6=0.2
Interpret Interaction Effects in Linear Regression Models, for 2 Categorical Variables