Skip to content

GLMM question in lme4

2 messages · Hallman, Tyler, Ben Bolker

#
Hallman, Tyler <Tyler.Hallman at ...> writes:
This is a good start.  

(minor) In the current release lmer(...,family=binomial)
automatically calls glmer(), but in future releases you will have to
call glmer() explicitly.

(major) I'm surprised you're not getting warnings about
"non-integer #successes in a binomial glm", if you have more
than one individual per beaker.  Take a closer look at the
?glm help page for the format of binomial response variables
(hint: either cbind(n.dead,n.notdead)~... or prop~..., weights=n.exposed)

You might want (Time|BeakerNumber), to allow for different trajectories
through time in each beaker.

These models don't explicitly account for continuous temporal
autocorrelation (e.g. an autoregressive-order-1 (AR1) model would
be the simplest case), but that is actually a little bit tricky
in the GLMM case -- you would probably need to use AD Model Builder
or WinBUGS or some more general tool for that.  Given that you
have only 5 time points, and not a gigantic data set, that might
not be a huge problem.  You could check the residuals for evidence
of autocorrelation.

However, the models *do* account for the overall correlation of
observations within beakers.

You may also want to add an observation-level random effect
to account for overdispersion.