Skip to content
Prev 139 / 20628 Next

lmer, intercepts and offsets

On 3/27/07, Daniel Farewell <farewelld at cf.ac.uk> wrote:
I'll need to look at what happens inside of lmer to an offset.
Motivated by your example I looked at the code for handling an offset
in lmer2 and found 2 errors, which I have fixed.

However, this doesn't solve your original problem of how you can
profile the log-likelihood or, equivalently, the deviance.  The lmer
and lmer2 structures are constructed to allow for simple evaluation of
the profiled deviance.  This is a function of the relative
variance-covariance of the random effects only.  (See the
"Implementation" vignette.)  The contribution of the fixed-effects
parameters and, if used, the scale parameter in the distribution of
the response given the linear predictor has been removed.

It would be possible to reintroduce these parameters and evaluate the
deviance but it isn't trivial.  First you need to write out the
explicit expression for the deviance and then decide how to evaluate
all the terms in that expression.  Especially for a GLMM doing this is
complicated.