[R] How can i change the number of iterations in lme function

Berend Hasselman bhh at xs4all.nl
Sun Dec 2 11:25:01 CET 2012


On 02-12-2012, at 10:15, Haris Rhrlp wrote:

> lme2<-lme(y~ age + time + timeDay,data= DF, random=~time |id/timeDay)
> Error in lme.formula(y ~ age + time + timeDay, data = DF, random = ~time |  : 
>   nlminb problem, convergence error code = 1
>   message = iteration limit reached without convergence (10)


Assuming you are using package nlme.

Have you tried  ?lmeControl
and seen the msMaxIter and/or msMaxEval arguments.
You can set these with the control argument of lme.

Reading and browsing the help of a package really can be quite helpful.

Berend




More information about the R-help mailing list