[R] change maxiter for nls
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Fri Oct 21 17:59:11 CEST 2005
Xiaodong Jin <close2ceo at 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 at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list