Skip to content
Prev 295739 / 398503 Next

Assessing interaction effects in GLMMs

Luke Duncan <luke.mangaliso.duncan <at> gmail.com> writes:
How many zones are there? It could be a toss-up between treating
Zone as random vs fixed ...
OK, be careful (this is a general point about interpreting models
in R, not specific to GLMMs); the main effects of Time and Tertile
are assessed **at the baseline level of the other** when the interaction
is present in the model.  You have to be very careful interpreting
the meaning of main effects in the presence of interactions.  The
Type III Wald test you use below probably only makes sense if you
have set sum-to-zero contrasts (options(contrasts="sum")).
Are you trying to test a hypothesis, or just to ask about the values?
You can construct the values yourself, or (with the development version
of lme4) use the predict() method, to compute what the probabilities
will be in each of these situations.  By the way, the contrast you
have suggested above (10AM, low vs high shade) is not an interaction;
to test it, I would suggest that you relevel() your time variable
to 10 AM, then look at the estimated effect of Tertile for high vs low.
[snip]