loss.hetroWM: Weighted Robut loss function.

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

View source: R/loss_hetroWM.R

Description

weighted loss function is used to estimate Weighted M-estimate. It is a robustified form of Likelihood function for heteroscedastic variance case. loss.hetroWM will be used in optimization function for estimating parameters of nonlinear function model and variance function model simultaneously.

Usage

1
loss.hetroWM(formula, data, start, varmodel, robfunc, ...)

Arguments

formula

nl.form object of nonlinear regression model.

data

list of data include responce, predictor or possibly predictor of variance model function (t), if not represented then the predict of nonlinear model function will be replaced in predictor variable of nonlinear variance model function that is Var(\varepsilon)=σ^2 H(f(θ),τ)

start

list of parameter values of nonlinear model function (θ in f(x,θ) and τ in H(x,τ)), initial values or increament during optimization procedure.

varmodel

nl.form object of heteroscedastic variance model function. varmodel must return variance function not standard deviation. Include gradient and hessian.

robfunc

nl.form of rho function. It must include tuning constants k0 and k1.

...

extra argument might pass to nonlinear regression, heteroscedastic functions, or tuning constant and other parameters to robust loss rho function.

Details

Loss function in general form have robust rho function. l(tau,theta)=sum[log(h(mu;tau,sg))] + sum[rho(ri/h(mu;tau,sg))]

Value

result <- list (value=value,angvec=angvec,angmat=angmat, refvar=refvar,sourcefnc= match.call(), rho=robvalue,fmod=fmod,varcomp=varcomp,correlation =nlrho,ri=ri)

value

Robustified form of log-likelihood function, use in optimize function. Include gradient and hessian attributes.

angvec

angular vector for checking the convergence.

angmat

angular matrix for checking convergence in optimization procedure.

refvar

refvar, sample variance ∑(wi * z) \over ∑(wi)

sourcefnc

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

rho

computed robust loss rho function. Include hessian and gradients.

fmod

computed function contains esponse and or its gradient and hessian predictor and or its gradient & hessian

varcomp

computed variance function model H(t,τ), include response or predictor and their gradient and hessian depends on the defined form of nonlinear function model.

correlation

correlation of fitt.

ri

residuals

Note

rho function can be square function, this will produce non robust MLE or LS. This is implemented for internal use, might not be called directly by user.

Author(s)

Lim, C., Sen, P. K., Peddada, S. D.

References

Lim, C., Sen, P. K., Peddada, S. D. (2010). Statistical inference in nonlinear regression under heteroscedasticity. Sankhya B 72:202-218.

See Also

nl.form

Examples

1
2
## The function is currently defined as
"loss.hetroWM"

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

Related to loss.hetroWM in nlr...