Skip to content
Prev 37404 / 398500 Next

gnls( ) question

Hi Paul,
	The message has to do with the gauss-newton algorithm and it announces that
there will be a failure in convergence. An old version of the algorithm is
in Bates and Watts "Nonlinear regression and its applications" (one of the
appendix).

	When I get that kind of messages, it can mean two things:

1.-The initial estimates that I have provided are not good enough. You can
try to get some good estimates using optim().

2.-The model that I am trying to fit is not appropriate to describe the
data. No straight-forward solution goes for this.

	If you want to fiddle around with the parameters of gnls and try to see if
you reach convergence from your model and starting points, have a look at
the gnls page and the gnlsControl help pages. I think you need to specify
inside your gnls() call

control =gnlsControl(maxIter = 1000, pnlsMaxIter = 200, msMaxIter = 1000,
tolerance = 1e-06, pnlsTol = 1e-04, msTol = 1e-07, minScale = 1e-10,
returnObject = TRUE)


best regards,

IOsu

P.S.: That gnls function is a superb addition to the nonlinear regression
facilities R had before!.

--------------------------------------------------------------
Jes?s Mar?a Fr?as Celayeta
School of Food Sci. and Env. Health.
Faculty of Tourism and Food
Dublin Institute of Technology
Cathal Brugha St., Dublin 1. Ireland
Phone: +353 1 4024459 Fax: +353 1 4024495
http://www.dit.ie/DIT/tourismfood/science/staff/frias.html
--------------------------------------------------------------