Skip to content
Prev 76671 / 398502 Next

specification for glmmPQL

On 9/4/05, Andrew R. Criswell <r-stats at arcriswell.com> wrote:
Thanks for sending the data.

In your first message you said that you got completely different
results from glmmPQL when fitting the two models.  When I fit these
models with glmmPQL I got quite similar parameter estimates.  The
reported log-likelihood or AIC or BIC values are quite different but
these values apply to a different model (the list weighted linear
mixed model used in the PQL algorithm) and should not be used for a
glmm model in any case.

The fm4 results from lmer in the lme4 package (actually lmer is now in
the Matrix package but that is only temporary) confirm those from
glmmPQL.  The model fm3 when fit by lmer provides different standard
errors but that is because the weights are not being appropriately
adjusted in lmer.  We will fix that.

In general I think it is safest to use the long form of the data as in
your data.2.

Here are the results from lmer applied to the long form.  The results
from the Adaptive Gauss-Hermite Quadrature (AGQ) method are preferred
to those from the PQL method because AGQ is a more accurate
approximation to the log-likelihood of the GLMM model.  In this case
the differences are minor.

The log-likelihood reported here is an approximation to the
log-likelihood of the GLMM model.
Generalized linear mixed model fit using PQL 
Formula: response ~ expt + (1 | subject) 
   Data: data.2 
 Family: binomial(logit link)
      AIC     BIC    logLik deviance
 4298.026 4322.31 -2145.013 4290.026
Random effects:
     Groups        Name    Variance    Std.Dev. 
    subject (Intercept)    0.015835     0.12584 
# of obs: 3200, groups: subject, 8

Estimated scale (compare to 1)  0.9990621 

Fixed effects:
              Estimate Std. Error z value  Pr(>|z|)
(Intercept)    0.30764    0.08075  3.8098 0.0001391
expttreatment  0.21319    0.11473  1.8582 0.0631454
Generalized linear mixed model fit using AGQ 
Formula: response ~ expt + (1 | subject) 
   Data: data.2 
 Family: binomial(logit link)
      AIC      BIC    logLik deviance
 4298.023 4322.306 -2145.011 4290.023
Random effects:
     Groups        Name    Variance    Std.Dev. 
    subject (Intercept)    0.015855     0.12592 
# of obs: 3200, groups: subject, 8

Estimated scale (compare to 1)  1.007675 

Fixed effects:
              Estimate Std. Error z value  Pr(>|z|)
(Intercept)    0.30811    0.08075  3.8156 0.0001358
expttreatment  0.21352    0.11473  1.8611 0.0627322