## Why we need the lower-order-terms...

This is the second article in our series about non-hierarchical models. Here i want to point out the problem of non-hierarchical regression models meaning models that include some higher-order-terms without the corresponding lower-order-terms.

Have you ever received such a message when fitting a linear model?

 Design Expert - Warning

Or this?

 JMP Warning

When you face these warnings you probably tried to fit a model containing higher-order-terms without using the corresponding main effects. Typical examples are models containing two-factor-interactions (${x}_{1}\ast {x}_{2}$) without using the main effects in the model (${x}_{1}$ and ${x}_{2}$ itself). The same applies to polynomial models containing higher order effects (quadratic, cubic, ...) leaving out the linear term.

So what is the problem of non-hierarchical models? Why these warnings? Why do we usually recommend to respect model-hierarchy? The main argument is the following:

Non-hierarchical models aren't invariant versus location shifts

Assume we are using a non-hierarchical model like $tast{e}_{i}={\beta }_{0}+{\beta }_{1}tem{p}_{i}\ast tim{e}_{i}$. We have a response $taste$ and two predictors $temp$ and $time$. The model only uses the interaction of both predictors to explain the response.

 temp time taste ctemp ctime °C min --- °C min 190 10 2 5.8 -11.7 195 15 5 10.8 -6.7 200 20 3 15.8 -1.7 175 30 8 -9.2 8.3 180 30 6 -4.2 8.3 165 25 4 -19.2 3.3

Lets start with analysing the full model: $tast{e}_{i}={b}_{0}+{b}_{1}\cdot tem{p}_{i}+{b}_{2}\cdot tim{e}_{i}+{b}_{12}\cdot tem{p}_{i}\cdot tim{e}_{i}+{ϵ}_{i}$

The estimated model is:

But the vifs seem to be rather problematic:

 VIF VIF centered temp 358 2.54 time 8990 2.75 temp*time 7074 1.72

To avoid the problem of multicollinearity let us center the factors. Then recalculate the model:

Of course the main effect estimates change but the estimate and p-value of the interaction are still the same! The VIFs are all below 3 now.

Results

• Use centered data as it removes a multicollinearity problem.
• The 2-factor-interaction is significant.
• The centered temperature factor is not significant.

The question is: May we remove the main-effect temperature now? Go one step further: Let us figure out what happens if we remove both main effects.

1. As we are using only one factor now we do not care for multicollinearity any more. So we might use the original data.
2. Estimate the pure interaction model: $tast{e}_{i}={b}_{0}+{b}_{12}tem{p}_{i}\cdot tim{e}_{i}+{ϵ}_{i}$.

The estimated model is the following:

 Non-hierarchical Model (computed with R)

The two-factor-interaction seems to be significant at a level of significance of 0.1 (typical level of significance in a screening situation).

Finally estimate the same model for the centered data (just for comparison):

 Non-hierarchical Model for centered data (in R)

As you can see the results change heavily. While we did not touch the relation between $temp,time$ and $taste$ (we only subtracted the mean of each variable) the interaction in the first model is significant it is not in the second.

What happened here and why might this be a problem?

Mathematical motivation

If you are using an interaction-model without the main effects, the model is not invariant to location shifts of the factors. If the factors in the interaction model ${y}_{i}={\beta }_{0}+{\beta }_{1}{x}_{i}\ast {z}_{i}$ are centered the model is extended to some kind of full model, as:

${y}_{i}={\beta }_{0}+{\beta }_{1}\left({x}_{i}-\overline{x}\right)\ast \left({z}_{i}-\overline{z}\right)=$
${y}_{i}={\beta }_{0}+{\beta }_{1}\left({x}_{i}\ast {z}_{i}-\overline{x}\ast {z}_{i}-{x}_{i}\ast \overline{z}+\overline{x}\overline{z}\right)$

You see, that this new model contains the pure main effects in the terms ${z}_{i}\ast \overline{x}$ and ${x}_{i}\ast \overline{z}$ as $\overline{x}$ and $\overline{z}$ are only constants.