Re: [R] error in nls, step factor reduced below minFactor

From: Keith Jewell <k.jewell_at_campden.co.uk>
Date: Tue, 29 Mar 2011 09:58:09 +0100

?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" <ehlers_at_ucalgary.ca> wrote in message news:4D9143CA.6060301_at_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
>> sgreiner_at_factset.com<mailto:sgreiner_at_factset.com>
>> 312 566 5109 (w)
>> 585 261 7138 (c)
>>
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help_at_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_at_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. Received on Tue 29 Mar 2011 - 09:00:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 Mar 2011 - 09:40:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive