Interaction analysis

Step 8: Interaction analysis

In this section we will answer the third research question:

Does the relationship between exposure to bullying and health problems differ between boys and girls?

Note
Remember that the analyses should only be based on those with a value of 1 for the pop variable.
Note
Remember to use factor variables when including categorical/non-binary variables.

For the interaction analysis, we use Approach B (interaction analysis based on comparison of model fit).

First, we perform a multiple linear regression analysis for bullied, sex, and healthissues.

reg healthissues i.bullied i.sex if pop==1

Then we save the estimates from the model and name it “m1int.” This estimate is saved in order to compare the two models later on.

estimates store m1int

Now, we perform a multiple linear regression analysis for bullied, sex, and healthissues, but also include the interaction term for bully and sex. A factorial variable approach is most appropriate here.

reg healthissues i.bullied##i.sex if pop==1

Then we save the estimates from the model and name it “m2int.”

estimates store m2int
Note
We called our saved models “m1int” and “m2int”, but you can choose any name you like.

Next step is to perform a likelihood ratio test to compare the two models.

lrtest m1int m2int, stats

There is a significant interaction effect (sex moderates the association between exposure to bullying and self-rated health issues). This is shown on the p-value of the likelihood ratio test (p=0.0106), which means that the model with the interaction term fits the data better than the model without the interaction term. This can also be confirmed with the AIC value, which is lower for model2int than model1int. The BIC value is not lower for model2int than model1int, but it should be noted that BIC tend to penalise complex models more than AIC does.

Thereafter we produce marginal effects and generate a marginal plot for the interaction effect.

margins i.bullied#i.sex

marginsplot

Note
You can use the Graph Editor (see Graph) to edit the marginsplot.

Summary
Based on the interaction analysis and the marginsplot, we can see that sex moderates the relationship between exposure to bullying and self-rated health issues, which means that the relationship looks different between boys and girls. The differences in self-rated health issues between boys who had been exposed to bullying compared to the boys who had not were greater than the differences in self-rated health issues between the girls who had been exposed to bullying compared to those who had not. We can see that because the slope in the marginsplot is steeper for the boys.

Note
For extra review, please re-visit the section on Interaction analysis.

When we have included all of the relevant variables, performed our multiple linear regression model, as well as our interaction analysis, the next step is to perform model diagnostics.