Re: [R] change maxiter for nls

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Sat 22 Oct 2005 - 01:59:11 EST

Xiaodong Jin <close2ceo@yahoo.com> writes:

> I typed the following commands but it still use maxiter=50 after the 2nd command:
>
> nls.control(maxiter = 1000)
> nls(......)
>
> Thanks!

You need

nlc <- nls.control(maxiter = 1000)
nls(..., control=nlc)

And yes, I suppose both help pages could be clearer about this...

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Sat Oct 22 02:10:30 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 19:16:07 EST