Skip to content
Prev 17985 / 20628 Next

Question about interpreting interaction of effects coded predictors

Thanks for the MWE, Dave, but please try to use plain-text (instead of
HTML) formatted email because it tends to preserve the linebreaks better
on the list.

You don't need to something like an ANOVA or analysis of deviance, you
can interpret appropriately coded contrasts (like you have) directly
from the model summary.

See e.g. https://arxiv.org/abs/1807.10451

In your particular case, it's easy to show that you get the same answer
as you would with a Type II analysis of deviance:
Estimate Std. Error    z value  Pr(>|z|)
(Intercept)  0.12290954  0.1069286  1.1494541 0.2503688
IV11        -0.05570847  0.1059129 -0.5259840 0.5988993
IV21        -0.10058387  0.1059290 -0.9495401 0.3423460
IV11:IV21   -0.05570841  0.1059128 -0.5259836 0.5988996
Analysis of Deviance Table (Type II Wald chisquare tests)

Response: DV
         Chisq Df Pr(>Chisq)
IV1     0.2791  1     0.5973
IV2     0.9020  1     0.3422
IV1:IV2 0.2767  1     0.5989


or even using drop1, which will do the likelihood-ratio test for you
(the other meaning of anova() in R):
boundary (singular) fit: see ?isSingular
Single term deletions

Model:
DV ~ IV1 * IV2 + (1 | Subject) + (1 | Item)
        Df    AIC     LRT Pr(Chi)
<none>     508.26
IV1:IV2  1 506.53 0.27678  0.5988


One small t> drop1(m, test="Chisq")
boundary (singular) fit: see ?isSingular
Single term deletions

Model:
DV ~ IV1 * IV2 + (1 | Subject) + (1 | Item)
        Df    AIC     LRT Pr(Chi)
<none>     508.26
IV1:IV2  1 506.53 0.27678  0.5988



Two more small tips for you:

1. Don't automatically include lmerTest whenever you want to use
mixed-effects models. It doesn't actually add any extra functionality
for glmer() and the extra degrees of freedom estimation it provides for
lmer() aren't universally seen as a good thing. (The Kenward-Roger
approximation depends on inverting a large matrix and the the
Satterthwaite approximation isn't much better than just treating the t
values as z values when you have typically sized psycholinguistic datasets.)

2. Don't automatically include data.table. You don't need it for your
example. :)

Best,
Phillip
On 11/10/2019 06:26, David Sidhu wrote: