Skip to content
Prev 12649 / 20628 Next

default optimizer in lmer 1.1-7?

[cc'ing to r-sig-mixed-models]

You can see the default optimizer for GLMMs by running

 > glmerControl()$optimizer
[1] "bobyqa"      "Nelder_Mead"

This means that bobyqa is used for the first (nAGQ=0) stage of
optimization, whereas Nelder-Mead is used for the second (nAGQ>0).  If
optimizer is a length-1 vector, the same optimizer is used for both stages
of optimization (I *think* this is explained in the documentation, but it
might not be ...)

If you read the NEWS file <
http://cran.r-project.org/web/packages/lme4/news.html> slightly more
carefully, you'll see that the default was only changed for `lmer` fits,
not `glmer` fits -- from 1.1-4,

* The default optimizer for lmer fits has been switched from "Nelder_Mead"
to "bobyqa" because we have generally found the latter to be more reliable.
To switch back to the old behaviour, use
control=lmerControl(optimizer="Nelder_Mead").

  We are very seriously considering making bobyqa, or nloptwrap, the
default for GLMMs as well (for both stages of optimization) in the next
release.

 I haven't looked at your results in too much detail otherwise -- it's a
little bit puzzling that all the AICs seem to be about the same, but I was
in a hurry (and I want to send this off before the problem gets buried in
my inbox).


On Thu, Nov 6, 2014 at 10:16 AM, Jordi Moya Lara?o <jordi at eeza.csic.es>
wrote:

  
  
Message-ID: <CABghstSVPGZwGqP+VUK7j0kp5SqNDJgtFno8qmqUonJqrzK9mQ@mail.gmail.com>
In-Reply-To: <3beefbe428da4be8939e8ec60a4c60e6@ex1.eeza.csic.es>