University of Amsterdam
2025-11-07
In this lecture we aim to:
Reading: Chapter 10
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\)
Take it for a spin (does not work on tablet)
Estimate Std. Error t value Pr(>|t|)
(Intercept) 61.6811406 12.103312777 5.096220 1.734165e-06
hours.awake -3.6114686 1.123014658 -3.215869 1.772655e-03
ml.coffee 0.2656703 0.042873015 6.196679 1.436438e-08
hours.awake:ml.coffee 0.1024285 0.004037068 25.371988 2.357675e-44
\(\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} = 61.68 + -3.61 \times Pred_i + 0.27 \times Mod_i + \color{red} 0.1 \times Pred_i \times Mod_i \color{black}\)
\(\definecolor{red}{RGB}{255,0,0} \definecolor{black}{RGB}{0,0,0} \color{black}\widehat{Out_i} = 61.68 + -3.61 \times 15 + 0.27 \times 213 + \color{red} 0.1 \times 15 \times 213 \color{black} \approx 391.36\)
\(r^2\) is the proportion of blue to orange, while \(1 - r^2\) is the proportion of red to orange

Scientific & Statistical Reasoning