nlsqr: Least Square estimate.

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/nlsqr.R

Description

Least Square estimate of a nonlinear function, Using QR-decomposition of Gradient matrix.

Usage

1
2
3
nlsqr(formula, data, start = getInitial(formula, data), 
control = nlr.control(tolerance = 1e-04, minlanda = 1/2^10, 
maxiter = 25 * length(start)))

Arguments

formula

nl.form object of the nonlinear function model. See nl.form object.

data

list of data with the response and predictor as name of variable.

start

list of starting value parameter, name of parameters must be represented as names of variable in the list.

control

nlr.control object, include tolerance, maxiter,... see nlr.control.

Details

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.

Value

result is object of nl.fitt (nonlinear fitt robust) for homogeneous and uncorrelated variance.

parameters

nonlinear regression parameter estimate of θ.

correlation

of fited model.

form

nl.form object of called nonlinear regression model.

response

computed response.

predictor

computed (right side of formula) at estimated parameter with gradient and hessian attributes.

curvature

list of curvatures, see curvature function.

history

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.

method

fittmethod object of method used for fitt.

data

list of called data.

sourcefnc

Object of class "callorNULL" source function called for fitt.

Fault

Fault object of error, if no error Fault number = 0 will return back.

Note

This function is fast algorithm based on gradient. If gradient does not exist one can use nlsnm function.

This function call by nlr, for compatibility it is better to call from nlr rather than directly by user.

Author(s)

Hossein Riazoshams, Jan 2010. Email: riazihosein@gmail.com URL http://www.riazoshams.com/nlr/

References

Bates, D. M., and Watts, D. G. (1988). Nonlinear regression analysis and its applications. New York: John Wiley & Sons.

See Also

nl.form, nlsnm, nlr.control, nl.fitt, curvature, Fault

Examples

1
2
## The function is currently defined as
"nlsqr"

nlr documentation built on July 31, 2019, 5:09 p.m.

Related to nlsqr in nlr...