nlmest.WF: Nonlinear MM-estimate using wolf conditions.

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

View source: R/nlmest_WF.R

Description

Parameters estimates by robust MM-estimate by minimizing the sum of robust rho function, Choosing a Step-Length using Wolfe Conditions.

Usage

1
2
3
4
5
6
nlmest.WF(formula, data, start = getInitial(formula, data), robfunc, 
control = nlr.control(tolerance = 1e-04, 
maxiter = 25 * length(start), robscale = T), vm = NULL, rm = eiginv(t(chol(vm))), ...)
# zoom2 is sub function
#zoom2(a1,a2,p1,p2,pd1,pd2,ht,phi0,phid0,theta1,
#delta1,sigma,objfnc,data,start,control,...)

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. In heterogeneous case if it include response variable values of heterogenous variance function it asume variance function is function of predictor H(x_i,τ), otherwise it assume is a function of predictor H(f(x_i,θ),τ).

start

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

robfunc

nl.form object of robust function used for downgrading.

control

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

vm

optional covariance matrix of residuals, used for nonlinear generalized M-estimate.

rm

optional correlation matrix, used for nonlinear generalized M-estimate. rm is correlation matrix of vm, thus only vm is enough to be given. It can be given by user also but not necessary automatically will be calculated by argument eiginv(t(chol(vm))).

...

any other argument passed to formula, robfnc, or optimization function.

Details

This function Choosing a Step-Length using Wolfe Conditions in direct search optimization. Sum of robust loss function ρ is minimized in order to get the robust MM-estimates. This method is very fast and used for when the gradient of colaborating functions exists.

Value

result is object of nl.fitt.rob (nonlinear fitt robust) for homogeneous variance, and nl.fitt.rgn for heterogeneous and autocorrelated error (nonlinear fitt robust generalized), see nl.fitt.rgn object detail.

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.

htheta

robust loss value including gradient and hessain attributes.

rho

computed robust rho function, including gradient and hessain attributes.

ri

estimated residuals, including gradient and hessain attributes.

curvrob

curvature

robform

nl.form object of robust loss rho function.

if vm is not NULL the nl.fitt.rgn include following extra slots:

vm

covariance matrix, diagonal of variance model predicted values.

rm

cholesky decomposition of vm.

gresponse

transformed of response by rm, include gradinet and hessian attributes.

gpredictor

transformed of predictor by rm, include gradinet and hessian attributes.

Note

The nlmest.NLM function is more developed form of this function, but still there are some situations that current function might be used. nlr package for estimating robust MM, try to acheive the optimization convergence using nlmest.NLM or nlmest.WF or nlmest.LM, either of them that does not attain convergence other method might be used.

Author(s)

Jorge Nocedal Stephen J. Wright

References

Numerical Optimization, Jorge Nocedal Stephen J. Wright, Springer 2006.

See Also

nlmest.LM, nlmest.NLM, nlmest.LM, nlmest.WF, nl.form, nl.fitt.rob, nl.fitt.rgn, nlr.control

Examples

1
2
## The function is currently defined as
"nlmest.WF"

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

Related to nlmest.WF in nlr...