nls.lm.control  R Documentation 
Allow the user to set some characteristics
LevenbergMarquardt nonlinear least squares algorithm implemented
in nls.lm
.
nls.lm.control(ftol = sqrt(.Machine$double.eps),
ptol = sqrt(.Machine$double.eps), gtol = 0, diag = list(), epsfcn = 0,
factor = 100, maxfev = integer(), maxiter = 50, nprint = 0)
ftol 
nonnegative numeric. Termination occurs when
both the actual and predicted relative reductions in the sum of
squares are at most 
ptol 
nonnegative numeric. Termination occurs when
the relative error between two consecutive iterates is at most

gtol 
nonnegative numeric. Termination occurs when
the cosine of the angle between result of 
diag 
a list or numeric vector containing positive
entries that serve as multiplicative scale factors for the
parameters. Length of 
epsfcn 
(used if 
factor 
positive numeric, used in determining the
initial step bound. This bound is set to the product of

maxfev 
integer; termination occurs
when the number of calls to 
maxiter 
positive integer. Termination occurs
when the number of iterations reaches 
nprint 
is an integer; set 
A list
with exactly nine components:
ftol 

ptol 

gtol 

diag 

epsfcn 

factor 

maxfev 

nprint 
with meanings as explained under ‘Arguments’.
J.J. Moré, "The LevenbergMarquardt algorithm: implementation and theory," in Lecture Notes in Mathematics 630: Numerical Analysis, G.A. Watson (Ed.), SpringerVerlag: Berlin, 1978, pp. 105116.
nls.lm
nls.lm.control(maxiter = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.