\Header{nls.control}{Control the Iterations in nls}
\keyword{nonlinear}{nls.control}
\keyword{regression}{nls.control}
\keyword{models}{nls.control}
\begin{Description}\relax
Allow the user to set some characteristics of the \code{nls}
nonlinear least squares algorithm.\end{Description}
\begin{Usage}
\begin{verbatim}
nls.control(maxiter=50, tol=1e-05, minFactor=1/1024)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{maxiter}] A positive integer specifying the maximum number of
iterations allowed.
\item[\code{tol}] A positive numeric value specifying the tolerance level for
the relative offset convergence criterion.
\item[\code{minFactor}] A positive numeric value specifying the minimum
step-size factor allowed on any step in the iteration.  The
increment is calculated with a Gauss-Newton algorithm and
successively halved until the residual sum of squares has been
decreased or until the step-size factor has been reduced below this
limit.
\end{ldescription}
\end{Arguments}
\begin{Value}
A \code{list} with exactly three components:
\begin{ldescription}
\item[\code{maxiter}] 
\item[\code{tol}] 
\item[\code{minFactor}] 
\end{ldescription}

with meanings as explained under \sQuote{Arguments}.\end{Value}
\begin{Author}\relax
Douglas Bates and Saikat DebRoy\end{Author}
\begin{References}\relax
Bates and Watts (1988),
\emph{Nonlinear Regression Analysis and Its Applications}, Wiley.\end{References}
\begin{SeeAlso}\relax
\code{\Link{nls}}\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
nls.control(minFactor = 1/2048)
\end{ExampleCode}
\end{Examples}

