Description Usage Arguments Value References
See cov.ogk
for information on how this estimator is computed. The only difference here
is that in this function is that the final covariance matrix is not based on dropping identified outliers, but rather,
smoothly downweighting them.
Several options to use as scale and location estimators are offered here:
- "tau" is the tau-scale defined in Yohai and Zamar (1998).
- "pb" is the percentage bend estimator (Shoemaker & Hettmansperger, 1982).
- "bisq" is Tukey's bisquare estimator.
- "huber" is Huber's estimator (Huber, 1964).
- "mopt" is the modified optimal estimator.
- "Qn" and "Sn" are two alternatives to the median based measures of location and scale (Rousseeuw, Peter, & Croux, 1993).
1 2 3 4 5 6 |
x |
a data frame or matrix of numeric covariates |
method |
one of "tau", "pb", "bisq", "huber", "mopt", "Qn", or "Sn" |
iter |
the number of refinement steps. defaults to 2. |
opts |
list of options for the various scale estimators. "b" determines the percentage bend coefficient for "pb", "eff" determines the efficiency of the "huber", "bisquare" and "mopt" scale estimators. |
a covRobust object containing the following elements:
center: multivariate mean of cleaned data set after applying casewise weights.
cov: covariance matrix of cleaned data set after applying casewise weights.
dist: the mahalanobis distances used in calculating the weights.
outliers: the indices of the outliers identified.
weights: the weights for downweighting outliers.
Huber, P. J. (1964). Robust estimation of a location parameter. Ann. Math. Statist. 35, 73–101.
Shoemaker, L. H., & Hettmansperger, T. P. (1982). Robust estimates and tests for the one- and two-sample scale models. Biometrika, 69:47–54
Rousseeuw, Peter J.; Croux, Christophe (1993). Alternatives to the Median Absolute Deviation, Journal of the American Statistical Association, 88(424): 1273–1283, doi:10.2307/229126
Yohai, R.A. and Zamar, R.H. (1998). High breakdown point estimates of regression by means of the minimization of efficient scale, Journal of the American Statistical Association, 86:403–413.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.