Least Square estimate of a nonlinear function, Using QR-decomposition of Gradient matrix.
nlsqr(formula, data, start = getInitial(formula, data),
control = nlr.control(tolerance = 1e-04, minlanda = 1/2^10,
maxiter = 25 * length(start)))nl.form object of the nonlinear function model. See nl.form object.
list of data with the response and predictor as name of variable.
list of starting value parameter, name of parameters must be represented as names of variable in the list.
nlr.control object, include tolerance, maxiter,... see nlr.control.
result is object of nl.fitt (nonlinear fitt robust) for homogeneous and uncorrelated variance.
nonlinear regression parameter estimate of \(\theta\).
of fited model.
nl.form object of called nonlinear regression model.
computed response.
computed (right side of formula) at estimated parameter with gradient and hessian attributes.
list of curvatures, see curvature function.
matrix of convergence history, collumns include: convergence index, parameters, minimized objective function, convergence criterion values, or other values. These values will be used in plot function in ploting history.
fittmethod object of method used for fitt.
list of called data.
Object of class "callorNULL" source function called for fitt.
Fault object of error, if no error Fault number = 0 will return back.
It is used to minimize the square loss function, using QR-decomposition of gradient matrix, thus the nonlinear function model formula must return back Gradient.
Bates, D. M., and Watts, D. G. (1988). Nonlinear regression analysis and its applications. New York: John Wiley & Sons.
# NOT RUN {
## The function is currently defined as
"nlsqr"
# }
Run the code above in your browser using DataLab