Description Usage Arguments Value References See Also Examples
Allow the user to set some characteristics
LevenbergMarquardt nonlinear least squares algorithm implemented
in nls.lm
.
1 2 3 
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.
1  nls.lm.control(maxiter = 4)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.