Rev 42333 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/stats/man/nls.control.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2007 R Core Development Team% Distributed under GPL 2 or later\name{nls.control}\alias{nls.control}\title{Control the Iterations in nls}\description{Allow the user to set some characteristics of the \code{nls}nonlinear least squares algorithm.}\usage{nls.control(maxiter = 50, tol = 1e-05, minFactor = 1/1024,printEval = FALSE, warnOnly = FALSE)}\arguments{\item{maxiter}{A positive integer specifying the maximum number ofiterations allowed.}\item{tol}{A positive numeric value specifying the tolerance level forthe relative offset convergence criterion.}\item{minFactor}{A positive numeric value specifying the minimumstep-size factor allowed on any step in the iteration. Theincrement is calculated with a Gauss-Newton algorithm andsuccessively halved until the residual sum of squares has beendecreased or until the step-size factor has been reduced below thislimit.}\item{printEval}{a logical specifying whether the number of evaluations(steps in the gradient direction taken each iteration) is printed.}\item{warnOnly}{a logical specifying whether \code{\link{nls}()} shouldreturn instead of signalling an error in the case of terminationbefore convergence.Termination before convergence happens upon completion of \code{maxiter}iterations, in the case of a singular gradient, and in the case that thestep-size factor is reduced below \code{minFactor}.}}\value{A \code{list} with exactly five components:\item{maxiter}{}\item{tol}{}\item{minFactor}{}\item{printEval}{}\item{warnOnly}{}with meanings as explained under \sQuote{Arguments}.}\references{Bates and Watts (1988),\emph{Nonlinear Regression Analysis and Its Applications}, Wiley.}\author{Douglas Bates and Saikat DebRoy}\seealso{\code{\link{nls}}}\examples{nls.control(minFactor = 1/2048)}\keyword{nonlinear}\keyword{regression}\keyword{models}