A: Consider this (maybe-too-familiar-at-week-7-in-the-quarter) but ultimately made-up example: predicting exam score from hours studied, hours of sleep, and cups of coffee.
There are two interactions to fit:
- studying × sleep: studying pays off more when you’re well rested. But….an extra hour of studying on 4 hours of sleep doesn’t help as much as the same hour on 8.
- coffee × sleep: coffee helps more when you’re short on sleep. If you’re already rested, it does less.
So the model would be:
score = β₀ + β₁study + β₂sleep + β₃coffee + β₄(study × sleep) + β₅*(coffee × sleep)
With some made-up numbers:
Say β₀ = 40, β₁ = 3, β₂ = 2, β₃ = 4, β₄ = 0.5, β₅ = −0.5.
Slope of studying = 3 + 0.5·sleep:
- On 4 hrs of sleep: each study hour is worth 5 points
- On 8 hrs: each study hour is worth 7 points
Slope of coffee = 4 − 0.5·sleep:
- On 4 hrs of sleep: each cup is worth 2 points
- On 8 hrs: each cup is worth 0 points
Slope of sleep = 2 + 0.5·study − 0.5·coffee <- sleep depends on two variables at once b/c it’s in both interaction terms)
Note: the above is NOT a three-way interaction. It’s two two-way interactions. A three-way term (study × sleep × coffee) would mean something like “the study–sleep synergy itself changes with coffee.” Even that barely makes sense as I put it in the notes. In other words, three way interaction terms are hard to interpret and are therefore infrequently used.
I added this as a third tab on the MLR explainer