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

2012-12-02 Thread Haris Rhrlp
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)

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


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

2012-12-02 Thread Berend Hasselman

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

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.