Description Usage Arguments Details Value Note Author(s) References See Also Examples
Resturn robust loss function for minimization purpose to find the M-estimate. It is used in dfrmest.NLM
function for derivative free purpose. Gradient and hessian are computed numerically.
1 | dfr.robloss(formula, data, start, robfunc, control = nlr.control(), rmat = NULL, ...)
|
formula |
|
data |
list of data include responce and predictor. |
start |
list of parameter values of nonlinear model function (θ in f(x,θ)), initial values or increament during optimization procedure. It must include scale sigma (standard deviation), if not included Fault(9) will be returned. |
robfunc |
|
control |
list of |
rmat |
R-Matrix for transforming, it might be cholesky decomposition of covariance matrix. |
... |
any other arguments might be used in formula, robfunc or tuning constants in rho function. |
Compute Loss function, sum of robust rho function to compute the M-estimate.
\ell(θ)=∑ ρ≤ft(\frac{r_i}{σ}\right)
Standard deviation σ must be included in start
argument list with the name sigma
.
gradient
and hessian
attributes compute numerically.
result <- list(htheta=htheta,rho=robvalue,ri=rsd,fmod=fmod,Fault=Fault2) list of output:
htheta: |
sum of rho function, include attribute |
rho: |
computed rho function and attributes of |
ri: |
residuals |
fmod: |
computed function contains esponse and or its gradient and hessian predictor and or its gradient & hessian |
Fault: |
|
All functions should have gradient
and hessian
in attributes. For derivative free purpose the dfr.robloss
can be used.
It is designed for internal use, might not call directly by user.
Hossein Riazoshams, May 2014. Email: riazihosein@gmail.com URL http://www.riazoshams.com/nlr/
Riazoshams H, Midi H, and Ghilagaber G, 2018,. Robust Nonlinear Regression, with Application using R, Joh Wiley and Sons.
nl.form
, nlr.control
, nlmest.NLM
, dfr.robloss
, robloss
1 2 | ## The function is currently defined as
"dfr.robloss"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.