Description Usage Arguments Details Value Note Author(s) References See Also Examples
Resturn Generalized robust loss function for minimization purpose to find the Generalized M-estimate. Generalized M-estimate required correlation or covariance matrix of data, then the model transform and estimated.
1 | robloss.gn(formula, data, start, robfunc, rmat, control = nlr.control(robscale = T), ...)
|
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 |
|
rmat |
R matrix, is cholesky decomposition of covariance matrix, the model transform by multiplying by R matrix. |
control |
list of |
... |
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 \times r_i}{σ}\right)
Standard deviation σ must be included in start
argument list with the name sigma
.
The R matrix is rmat
argument.
list of output:
htheta |
sum of rho function, include attribute |
rho |
computed rho function and attributes of |
ri |
residuals, transformed by R. |
hessh.p1 |
hessian of loss function part1 |
hessh.p2 |
hessian of loss function part2, in clasic this part removed but in robust statistics values are significant and can not be omited, See Riazoshams et al 1014 |
dtilda |
D(thilda) part of hessian |
fmod |
computed function (transformed by R) contains response and or its gradient and hessian predictor, transformed also by R. |
Fault |
|
This function use in optimization functions, specially from nlmest.NLM
, for where the covariance matrix or R matrix given, may not be called explicitly by user.
Generalized M-estimate might reperesent the autocorrelated or heteroscedastic variance case.
This function call by nlr
, for compatibility it is better to call from nlr
rather than 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
1 2 | ## The function is currently defined as
"robloss.gn"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.