Skip to content
Prev 2368 / 20628 Next

Model fit with a Poisson, cross-validation?

I'm not sure I would call this "cross-validation" (unless I
misunderstand what you're trying to do). CV usually means re-fitting the
model with one or more data points held out each time to see how much
the results vary. Andrew Gelman talks a lot in (Gelman and Hill 2006)
about "posterior predictive checks", which may be close to what you have
in mind.
  Depending on what you want to do, the raw material would normally
be provided by the simulate() method for a fitted GLMM (mer) object,
but I think it doesn't work with the current released version of
lme4 -- there is one in the "allcoef" branch.  An alternative
is to download
<http://glmm.wikidot.com/local--files/basic-glmm-simulation/glmmfuns.R>
and use the my.mer.sim() function to simulate from the fitted model.

  For what it's worth, your description of your fitting process
sounds sensible.

  good luck,
    Ben Bolker
Lindsay Reynolds wrote: