Running the Chapter 4 examples in Pinheiro & Bates' "Mixed-Effects
Models in S and S-PLUS" (2000), I get a message that the default
optimizer doesn't converge, but using "optim" for the optimizer
results in convergence:
library(nlme)
fm1IGF.lis <- lmList(IGF)
fm1IGF.lme <- lme(fm1IGF.lis)
Error in lme.formula(fixed = conc ~ age, data = IGF, random = list
(Lot = c(-0.741604809797216, :
nlminb problem, convergence error code = 1; message = iteration
limit reached without convergence (9)
fm1IGF.lme <- lme(fm1IGF.lis, control= list(opt="optim"))
I wouldn't have expected the default optimizer to not work with an
example from this text. Not knowing anything about the optimizers,
I'm wondering if this is expected or known behavior, or if there are
tips for getting it to converge other than changing optimizers?