powered by
This function computes an MM robust estimator for multivariate location and scatter with the "SHR" loss function.
covRobMM(X, maxit = 50, tolpar = 1e-04, cor = FALSE)
a data matrix with observations in rows.
Maximum number of iterations.
Tolerance to decide converngence.
A logical value. If TRUE a correlation matrix is included in the element cor of the returned object. Defaults to FALSE.
TRUE
cor
FALSE
A list with class “covRob” containing the following elements
The location estimate
The scatter or correlation matrix estimate, scaled for consistency at the normal distribution
The location estimate. Same as mu above.
mu
The scatter matrix estimate, scaled for consistency at the normal distribution. Same as V above.
V
The correlation matrix estimate, if the argument cor equals TRUE. Otherwise it is set to NULL.
NULL
Robust Mahalanobis distances
http://www.wiley.com/go/maronna/robust
# NOT RUN { data(bus) X0 <- as.matrix(bus) X1 <- X0[,-9] tmp <- covRobMM(X1) round(tmp$cov[1:10, 1:10], 3) tmp$mu # }
Run the code above in your browser using DataLab