Skip to content
Prev 12152 / 20628 Next

Checking modeling assumptions in a binomial GLMM

On 14-07-17 05:19 PM, Ravi Varadhan wrote:
RVAideMemoire is not our package: it's by Maxime Herv?.

We probably didn't add the overdispersion calculation to lme4
because (1) we didn't get around to it; (2) for GLMMs it's an
even-more-approximate estimate of overdispersion than it is
for GLMs; (3) it's easy enough for users to implement themselves
(another version is listed at
http://glmm.wikidot.com/faq#overdispersion_est,
and the aods3::gof() function also does these calculations
(although looking at it, there may be some issues with the
using the results of lme4::deviance() for these purposes -- it returns
something different from the sum of squares of the deviance
residuals ...)

  The summary statement of glmer models probably *should* include this
information.  Feel free to post an issue at
https://github.com/lme4/lme4/issues ...

This somewhat simpler expression replicates the results of
RVAideMemoire's function, although not quite as prettily:

library(lme4)
example(glmer)

c(dev <- sum(residuals(gm1)^2),
  dfr <- df.residual(gm1),
  ratio <- dev/dfr)

RVAideMemoire::overdisp.glmer(gm1)