[R] nls() and loop

J C Nash profjcnash at gmail.com
Fri Oct 20 18:53:22 CEST 2017

Yes, some form of try() is often needed with nls() to avoid scripts stopping.

You might also find nlxb() from package nlsr more reliable in finding solutions. It uses analytic derivatives if
available if the model is given as an expression, and a Marquardt stabilized solver. But do expect it to take more
iterations. The syntax is close, but not perfectly equivalent, to that of nls().


On 2017-10-20 11:20 AM, Jeff Newmiller wrote:
> ?tryCatch

More information about the R-help mailing list