nls, controling the max. number of iterations; was: (no subject)
Please read the posting guide and use a sensible subject line, tell us about the R version you are using, and add a *reproducible* example. We get: Error in nls(npe ~ SSgompertz(npo, Asym, b2, b3), data = f, control = nls.control(maxiter = 500)) : object 'f' not found Best, Uwe Ligges
On 04.01.2013 15:52, Karine HEERAH wrote:
Hi, I am using the nls function and it stops because the number of iterations exceeded 50, but i used the nls.control argument to allow for 500 iterations. Do you have any idea why it's not working? fm1 <- nls(npe ~ SSgompertz(npo, Asym, b2, b3), data=f,control=nls.control(maxiter=500)) Error in nls(y ~ exp(-b2 * b3^x), data = xy, algorithm = "plinear", start = c(b2 = pars[["b1"]], : number of iterations exceeded maximum of 50 Thanks for your help, Cheers, Karine.
______________________________________________ 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.