Interaction Models
Reading Interaction Terms in Regression
An interaction is a changing slope
An additive regression assumes that the effect of one predictor is the same at every value of another predictor. An interaction model adds their product. In a model with predictors X and Z, the coefficient on XZ tells how the slope of X changes as Z changes by one unit.
Use simple slopes
For a linear model containing X, Z, and XZ, the slope of X at a selected value of Z equals the main-effect coefficient of X plus the interaction coefficient times that selected value.
Likewise, the slope of Z depends on X. Main effects therefore describe slopes at the other predictor's coded zero, not average effects across every value.
Predictions require every term
To predict a response, substitute values into the intercept, both main effects, and the product term before adding. Omitting the product gives an additive-model prediction and discards the feature the interaction was included to represent. Units of a product coefficient depend on the outcome and on both predictor scales.
Coding and centering affect interpretation
Centering a continuous predictor changes what zero means, often making main effects easier to interpret. It can change coefficient values and intercept labels while preserving fitted values when the model is reparameterized correctly. For a categorical moderator, choose and state the reference coding before interpreting a simple slope.
A fitted model is Y = 10 + 3H − 2T + 1.5HT, where H is study hours and T is an indicator equal to 1 for a tutoring group and 0 otherwise. What is the predicted slope of Y with respect to H for the tutoring group?
Which plot pattern is evidence for an X-by-Z interaction in a linear model?