Description Usage Arguments Details Value Note Author(s) References See Also Examples
(RME) for nonlinear regression with heteroscedastic variance, when the variance of error is general parameteric function of unkown parameters. Robust form of CME (See dfr.hetro
).
1 2 3 | dfr.robhetro(formula, data, start = getInitial(formula, data), control = nlr.control(
tolerance = 1e-05, minlanda = 1/2^10, maxiter = 100 * length(start)), robfunc, varmodel,
tau = NULL, method = "NLM", ...)
|
formula |
|
data |
list of data include responce and predictor. |
start |
list of parameter values of nonlinear model function (θ). |
control |
list of |
robfunc |
nl.form object of robust function used for downgrading. |
varmodel |
|
tau |
list of initial values for variance model function |
method |
="NLM" means using |
... |
extra arguments to nonlinear regression model, heteroscedastic variance function, robust loss function or its tuning constants. |
In stage 1 the nonlinear model parameter estimates by robust MM-estimate, Stage 2 compute robust sample variance of data, Stage 3 estimate the parameter of variance function model by maximizing the robustified form of chi-square pseudo-likelihood function. Stage 4 estimate the final value of function model parameter by generalized robust MM-estimate.
nl.fitt.rgn
for heterogeneous and autocorrelated error (nonlinear fitt robust generalized) will return.
parameters |
nonlinear regression parameter estimate of θ. |
correlation |
of fited model. |
form |
|
response |
computed response. |
predictor |
computed (right side of formula) at estimated parameter with gradient and hessian attributes. |
curvature |
list of curvatures, see |
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 |
method |
|
data |
list of called data. |
sourcefnc |
Object of class |
Fault |
|
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 |
|
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. |
hetro |
|
others |
$refvar reference variance. variance of zi's. |
Heteroscedastic variance can have several cases, this function assume variance is parameteric function of predictor (H(t;τ)). If data does not include the predictor variable of varmodel
(t), the predicted of function model f(x;\hat θ) will replace for (t), otherwise user have to defin (t) or (x) as predictor variable of (H).
This function is derivative free form of nl.robhetro
and robust form of dfr.hetro
. Since it is slow algorithm it is recomneded to use larger values for maximum number of iterations in nlr.control
options.
Hossein Riazoshams
Riazoshams, H,. 2010. Outlier detection and robust estimation methods for nonlinear regression having autocorrelated and heteroscedastic errors. PhD thesis disertation, University Putra Malaysia.
Riazoshams H, Midi H, and Ghilagaber G, 2018,. Robust Nonlinear Regression, with Application using R, Joh Wiley and Sons.
dfr.hetro
, nlr.control
, fittmethod
, nl.form
, nl.fitt.rob
, nl.fitt.rgn
, nlr.control
1 2 3 4 5 6 7 | ntpstart=list(p1=.12,p2=6,p3=1,p4=33)
ntpstarttau=list(tau1=-.66,tau2=2,tau3=.04)
datalist=list(xr=ntp$dm.k,yr=ntp$cm.k)
rbhfitt <- dfr.robhetro(formula=nlrobj1[[16]],data=datalist,start=ntpstart,
robfunc=nl.robfuncs[["hampel"]],tau=ntpstarttau,varmodel=nlrobjvarmdls3[[2]],robscale=T,
method="NM",control=nlr.control(tolerance=1e-8))
rbhfitt$parameters
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.