Description Usage Arguments Value References
View source: R/robustregression.R
This implements Carroll and Rupert's (1982) heteroskedastic M-estimator. It combines
M-estimation with the feasible generalized least squares approach, which entails estimating
a linear model and utilizing the residuals to construct a covariance matrix of the errors, \widehat{Ω},
to be used in a weighted information matrix, (X^T \hat{Ω}^{-1} X)^{-1} for the generalized
least squares step. This is similar to the process of constructing a Huber-White Variance-Covariance matrix for
least squares coefficients, except here the estimated error covariance is used to re-estimate
the model. Therefore, this method combines the benefits of the feasible GLS approach with the
robustness of M-estimation.
The original formulation of this model used Huber's psi function, and a simple Huber M-estimator as the initial step. This is the default here, however, one can also select from the Theil-Sen and Least Absolute Deviations regressions as the initializer. Additional psi functions are also offered including Hampel's psi function, Tukey's bisquare, Yohai & Zamar's optimal psi function, and the power exponential psi function.
1 2 3 4 5 6 7 8 9 10 |
formula |
model formula |
data |
data frame |
varfun |
the name of the desired heteroskedasic variance function. One of "power" or "exponential". |
init |
the intial algorithm to use. one of "huber" ( |
psifun |
one of "optimal", "huber", "bisquare", "hampel", or "powexp" |
maxit |
maximum number of IRWLS iterations. defaults to 100. |
control |
a list of named tuning parameters. they must be named as in the defaults, (hu.k = 1.345, ha.k = 0.902, bs.c = 4.685, opt.c = 1, pe.c = 1.48, pe.e = 1.25; corresponding to "huber", "hampel", "bisquare", "optimal", and "powexp"). however, only the ones relevant to the chosen psi funtion are needed if custom values are desired.the defaults aim to achieve 95 relative efficiency when the residuals are normally distributed with no outliers. |
a roblm object
Carroll, R. J., & Ruppert, D. (1982). Robust estimation in heteroscedastic linear models. The annals of statistics, 429-441.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.