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

Peter Ehlers ehlers at ucalgary.ca
Tue Mar 29 04:28:26 CEST 2011


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.



More information about the R-help mailing list