?nls.control warnOnly a logical specifying whether nls() should return instead of signalling an error in the case of termination before convergence. Termination before convergence happens upon completion of maxiter iterations, in the case of a singular gradient, and in the case that the step-size factor is reduced below minFactor.
hope that helps Keith J "Peter Ehlers" <ehl...@ucalgary.ca> wrote in message news:4d9143ca.6060...@ucalgary.ca... > On 2011-03-28 10:25, Steve Greiner wrote: >> Hello, >> I've seen various threads on people reporting: >> >> >> step factor 0.000488281 reduced below `minFactor' of 0.000976563 >> >> While I know how to set the minFactor, what I'd like to have happen is >> for nls to return to me, the last or closest fitted parameters before it >> errors out. In other words, so I don't get convergence, I'd still like >> to acquire the values of the parameters last tried? Can you tell me how >> get nls to return to me the last set of parameters rather than just >> stopping? > > Isn't that what setting trace=TRUE does? > > Peter Ehlers > >> >> Regards >> Steven P. Greiner, Ph.D. >> >> Risk Head / FactSet Research System >> 311 South Wacker >> Chicago, IL 60606 >> sgrei...@factset.com<mailto:sgrei...@factset.com> >> 312 566 5109 (w) >> 585 261 7138 (c) >> >> >> [[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. > ______________________________________________ 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.