Skip to Content  nls {stats}  Nonlinear Least Squares R 3.0.2
Determine the nonlinear (weighted) least-squares estimates of
the parameters of a nonlinear model.   nls(formula, data, start,
control, algorithm,     trace, subset, weights, na.action,
model,     lower, upper, ...)   a nonlinear model formula
including variables and parameters. Will be coerced to a formula
if necessary. an optional data frame in which to evaluate the
variables in formula and weights. Can also be a list or an
environment, but not a matrix. a named list or named numeric
vector of starting estimates. When start is missing, a very
cheap guess for start is tried (if algorithm != "plinear"). an
optional list of control settings. See nls.control for the names
of the settable control values and their effect. character
string specifying the algorithm to use. The default algorithm is
a Gauss-Newton algorithm. Other possible values are "plinear"
for the Golub-Pereyra algorithm for partially linear least-
squares models and "port" for the ‘n