Skip to content
Prev 163955 / 398506 Next

Questions on the results from glmmPQL(MASS)

zhijie zhang wrote:
This is a philosophical difference between S-PLUS and R.
Since glmmPQL uses quasi-likelihood, technically there is
no log-likelihood (hence no AIC nor BIC, which are based
on the log-likelihood) for this model -- the argument is that
one is limited to looking at Wald tests (testing the Z- or
t-statistics, i.e. parameter estimates divided by estimated
standard errors) for inference in this case.
zhijie zhang wrote:
The (Intercept) random effect is the variance in intercept
across grouping factors .
The residual (0.78) is (I believe) the individual-level error estimated for
the
underlying linear mixed model -- you can probably ignore this.
zhijie zhang wrote:
In general (alas) it is *extremely* difficult to get *correct*
p-values for effects (both fixed and random, although fixed
might be even worse) in GLMMs, despite the fact that SAS
will happily give them to you.  In general you can get
p-values for random effects via a likelihood ratio test on
the difference of nested models with and without 
the relevant effects.  In this case that's a little bit trickier
because (1) glmmPQL won't give you log-likelihoods 
(2) glmmPQL won't fit models without any random effects
at all, and comparing log-likelihoods across different
fitting procedures is always a little risky -- you have to make
sure they are including the same constants in the log-likelihood.
A partial solution is to use the lmer function in the lme4 package:

 lme2 <- lmer(y ~ trt + I(week > 2)+(1|ID), family = binomial, data =
bacteria)

which gives you similar estimates (a good idea in any case, because
in any case PQL is not reliable for binary data -- see Breslow 2003).
This will give you a likelihood etc. for the model.  You still need to
work out whether comparing AIC/BIC log-likelihood between lmer
and glm (which you need to fit the model without random effects)
is sensible.

  I would strongly recommend that you follow up further questions
on this topic to r-sig-mixed-models at r-project.org , which is a 
special mailing list for mixed models.

  good luck,
   Ben Bolker