Skip to content
Prev 186 / 20628 Next

Different variance estimates from lmer and lmer2

On 5/22/07, Jonathan Bartlett <Jonathan.Bartlett at lshtm.ac.uk> wrote:

            
These differences are just reflecting different parameterizations and
different convergence criteria for lmer and lmer2.  Notice that the
REML deviance for the model fit by lmer2 is slightly smaller than that
fit by lmer (45.39 vs 45.4).  If you add the optional argument control
= list(msVerbose = 1) to the call to lmer and to lmer2 you will see
that lmer2 takes more iterations and, as shown above, produces a
slightly better criterion for the fit.

Having said all this, I would note that a difference of 0.01 in the
deviance is not going to be in any way significant.  Essentially what
all this is indicating is that the estimates of the variance
components are not very precisely determined.

It was probably after Julian fitted the models for his book that I
made the change in lmer to loosen the convergence criterion in lmer
somewhat.  In retrospect that may not have been a good idea.