Skip to content

error message and convergence issues in fitting glmer in package lme4

1 message · Douglas Bates

#
On Thu, Feb 26, 2009 at 10:58 AM, Tanja Srebotnjak
<tanjas at u.washington.edu> wrote:
Also, it is generally more effective to send questions about
lmer/glmer to the R-SIG-Mixed-Models list, which I am cc:ing on this
reply.
Error in validObject(.Object) : ? invalid class "mer" object: Slot Zt
must by dims['q'] ?by dims['n']*dims['s']

Getting that error message from this model is peculiar.  I couldn't
actually say what might be happening without trying the fit myself.  I
would suggest setting doFit = FALSE but I think that this error would
be encountered even with doFit = FALSE.  Again, it would be hard to
say exactly what is happening here.
The version of lmer currently under development tries to address that
problem.  The optimization of the parameter estimates is performed in
a slightly different way that will, I hope, provide smoother
convergence.  If your data are not restricted and you would be willing
to send me a copy of the diab data frame I could check what happens on
that version (or you could install the development version yourself
but that is a non-trivial undertaking).  If you can send the data the
best way to send it is to create an R data file as

save(diab, file = "diab.rda")

and send the file diab.rda
Frequently that is a sign of an overspecified model.