University of Amsterdam
10/2/23
In statistics and regression analysis, moderation occurs when the relationship between two variables depends on a third variable. The third variable is referred to as the moderator variable or simply the moderator. The effect of a moderating variable is characterized statistically as an interaction.
Source WIKIPEDIA
\(\definecolor{red}{RGB}{255,0,0} \definecolor{black}{RGB}{0,0,0} \color{black}Out_i = b_0 + b_1 Pred_i + b_2 Mod_i + \color{red}b_3 Pred_i \times Mod_i \color{black}+ \epsilon_i\)
Video games are among the favourite online activities for young people: two-thirds of 5–16-year-olds have their own video games console, and 88% of boys aged 8–15 own at least one games console. Although playing violent video games can enhance visuospatial acuity, visual memory, probabilistic inference, and mental rotation, compared to games such as Tetris, these games have also been linked to increased aggression in youths Another predictor of aggression and conduct problems is callous-unemotional traits such as lack of guilt, lack of empathy, and callous use of others for personal gain.
Imagine a scientist wanted to look at the relationship between playing violent video games such as Grand Theft Auto, MadWorld and Manhunt and aggression. She gathered data from 442 youths. She measured their aggressive behaviour, callous unemotional traits, and the number of hours per week they play video games.
Source: Field 11.3.1
\(\text{pred}_\text{c} = \text{pred} - \bar{\text{pred}} = \text{pred} - 15.39\)
\(\text{mod}_\text{c} = \text{mod} - \bar{\text{mod}}= \text{mod} - 7.808\)
SPSS syntax
COMPUTE pred = pred - 15.39.
COMPUTE mod = mod - 7.808.
EXECUTE.
predictor moderator outcome
predictor 1.000 0.722 0.215
moderator 0.722 1.000 0.109
outcome 0.215 0.109 1.000
Take it for a spin (does not work on tablet)
Call:
lm(formula = outcome ~ predictor + moderator + predictor * moderator)
Residuals:
Min 1Q Median 3Q Max
-7.1725 -2.0186 0.2975 2.2995 10.0602
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 5.37810 0.38305 14.040 < 2e-16 ***
predictor 0.70301 0.15469 4.544 1.6e-05 ***
moderator -0.21636 0.10891 -1.987 0.0498 *
predictor:moderator 0.37000 0.02649 13.967 < 2e-16 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 3.086 on 96 degrees of freedom
Multiple R-squared: 0.6869, Adjusted R-squared: 0.6771
F-statistic: 70.2 on 3 and 96 DF, p-value: < 2.2e-16
\(\definecolor{red}{RGB}{255,0,0} \definecolor{black}{RGB}{0,0,0} \color{black}\widehat{Out_i} = b_0 + b_1 Pred_i + b_2 Mod_i + \color{red}b_3 Pred_i \times Mod_i \color{black}\)
\(\definecolor{red}{RGB}{255,0,0} \definecolor{black}{RGB}{0,0,0} \color{black}\widehat{Out_i} = 5.38 + 0.7 \times Pred_i + -0.22 \times Mod_i + \color{red} 0.37 \times Pred_i \times Mod_i \color{black}\)
To determine the slopes of the regression plane at different levels of the moderater you can add the required moderator value to the regression equation and simplify.
\(5.38 + 0.7 \times Pred + -0.22 \times Mod + 0.37 \times Pred \times Mod\)
SMCR / SMCO