Skip to content

Questions about using glmmPQL and glmer

2 messages · Nai-Wei Chen, Ben Bolker

#
Nai-Wei Chen wrote:
m1 <- glmmPQL(...)
  residuals(m1)
  fitted(m1)
See any discussion of contrasts in R: differences between level x and
the baseline (first) level.  (In order to use glmmPQL you should be
familiar with both glm() and lme() ...)
m2 <- glmer()
  AIC(m2) ## or maybe AIC(logLik(m2))
  ranef(m2)
  residuals(m2)

  I would be careful using glmmPQL on binary data, this is a type of
data where penalized quasi-likelihood is known to be a bit dicey ...
Breslow, N. E. 2004. Whither PQL? Pages 1?22 in D. Y. Lin and P. J.
Heagerty, editors. Proceedings of the second Seattle symposium in
biostatistics: Analysis of correlated data. Springer.
<www.bepress.com/uwbiostat/paper192/>