Skip to content
Prev 77 / 20628 Next

no df of freedom to test the effect of an interaction in (lmer) mixed-model

Hi Ahimsa,

I think that the problem is that model red1, as you have expressed it,
doesn't resepct heredity (in the context of linear models).  It
contains a three-way interaction term (S:C:t) but omits one of the
underlying two-way interaction terms (S:t).

Generally, bad things can happen when you do this, including a lack of
invariance to location and scale transformations.

In this case I'm guessing that lmer is just changing the
parameterization.  Here's an analogy.  (S:t) previously played the
role of one of the margins for (S:C:t), so lmer only reported one
level of (S:C:t), as the other level is aliased with the margin.  If
you eliminate the margin then lmer has to report two levels.  It's
like the difference between:
Call:
lm(formula = y ~ x)

Coefficients:
(Intercept)           x2  
        1.5          2.0
Call:
lm(formula = y ~ x - 1)

Coefficients:
 x1   x2  
1.5  3.5
Notice that even though we removed the intercept, R still used two
degrees of freedom to express the model.

I hope that this helps,

Andrew
On Thu, Mar 01, 2007 at 06:18:06PM +0900, ahimsa campos-arceiz wrote: