covRob: Robust multivariate location and scatter estimators
Description
This function computes robust estimators for multivariate location and scatter.
Usage
covRob(X, type = "auto", maxit = 50, tol = 1e-04)
Arguments
X
a data matrix with observations in rows.
type
a string indicating which estimator to compute. Valid options
are "Rocke" for Rocke's S-estimator, "MM" for an MM-estimator with a
SHR rho function, or "auto" (default) which selects "Rocke" if the number
of variables is greater than or equal to 10, and "MM" otherwise.
maxit
Maximum number of iterations, defaults to 50.
tol
Tolerance for convergence, defaults to 1e-4.
Value
A list with class “covClassic” with the following components:
mu
The location estimate
V
The scatter matrix estimate, scaled for consistency at the normal distribution
center
The location estimate. Same as mu above.
cov
The scatter matrix estimate, scaled for consistency at the normal distribution. Same as V above.
dist
Robust Mahalanobis distances
Details
This function computes robust estimators for multivariate location and scatter.
The default behaviour (type = "auto") computes a "Rocke" estimator
(as implemented in covRobRocke) if the number
of variables is greater than or equal to 10, and an MM-estimator with a
SHR rho function (as implemented in covRobMM) otherwise.