| Hirls.mad | R Documentation |
Robust estimator for the linear regression model with Huber's weight function and MAD scal by iteratively re-weighted least squares (IRLS) algorithm
Hirls.mad(
x1,
y1,
rt = rep(1, length(y1)),
c1 = 1.44,
rp.max = 150,
cg.rt = 0.01
)
x1 |
explanatory variable(s) |
y1 |
objective variable |
rt |
sample weights |
c1 |
tuning parameter from 1.44 to 2.88 for the scale parameter of MAD(Median Absolute Deviation) |
rp.max |
maximum number of iteration |
cg.rt |
convergence condition to stop iteration (default: cg1=0.001) |
a list with the following elements
HBresults of robust regression
wtrobust weights
rptotal number of iteration
s1changes in scale through iterative calculation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.