We touched on the concept of an interaction in the gas consumption model given in Example 6.4.6. In this example, the relationship between gas consumption and outside temperature was altered by the installation of cavity wall insulation. This is an interaction between a factor (insulated or not) and a covariate (temperature).
Suppose that the response variable is and there are two explanatory variables and . We could either
Model the main effects only,
Or include an interaction as well
Note the interaction term is sometimes written as .