Skip to content

Hi

1 message · Douglas Bates

#
I have taken the liberty of cc:ing the
R-SIG-Mixed-Models at R-project.org mailing list on my reply.  It is best
to send such queries to that list as several of those who read the
list are able to respond, often much faster than I will.
On Wed, Nov 30, 2011 at 8:20 AM, <James.Cho at synovate.com> wrote:
Could you provide an example, please?  If the model specifications are
equivalent then lme and lmer should provide corresponding values of
the REML criterion or the deviance.
Yes.  lmer() uses a profiled REML criterion or deviance and a
different specification of the variance-covariance matrix of the
random effects.  They also use different optimizers which may have an
effect on the results.  We are currently evaluating the use of
different optimizer functions for generalized linear mixed models, in
particular, but would be very interested in situations where the
linear mixed models did not converge appropriately.  This is why a
reproducible example, perhaps with anonymized data, would help.
Before trying to increase the maximum number of iterations I would
first use a verbose setting to see what is happening in the
optimization.  The "brute force" attack of using the same model
specification and setting the maximum number of iterations to a large
value is not always a good approach.