[R-sig-ME] predicted mean from GLMM lower than mean from GAM

Ben Bolker bbolker at gmail.com
Tue Jul 17 22:57:55 CEST 2012


benton <benton at ...> writes:

> I fit a Poisson GLMM with only the intercept and two random effects, and 
> the predicted mean was 1.14. When I fit a generalized additive model 
> (GAM) with only the intercept, the predicted mean was 1.6. Does anyone 
> know why this is happening? I'm looking for a theoretical response, as 
> I've checked my code and there are no errors.
> 

  A little more information/reproducible example would be helpful; it
would be possible for me to invent a reproducible example for myself,
but it would be easier (for me!) and more likely to answer your
specific question if you provide the example.  Have you compared the
Poisson GLMM prediction with a Poisson GLM (no random effects)
prediction to make sure there's not some funky/surprising difference
between the GAM (presumably you're using mgcv::gam()) and the GLMM
(presumably you're using lme4::glmer()) ?  How are you deriving the
predictions?  Are you definitely using the same family and link
function for both models?  In general there can be important
differences between the marginal (no-random-effects) and conditional
(including-random-effects) predictions, but off the top of my head
that should not apply to intercept-only models ...  See
http://tinyurl.com/reproducible-000 for more info on reproducible
examples ...

  Ben Bolker



More information about the R-sig-mixed-models mailing list