r6pack.RdCompute six initial robust estimators of multivariate location and
“scatter” (scale); then, for each, compute the distances
\(d_{ij}\) and take the h (\(h > n/2\)) observations
with smallest distances. Then compute the statistical distances based
on these h observations.
Return the indices of the observations sorted in increasing order.
r6pack(x, h, full.h, scaled = TRUE, scalefn = rrcov.control()$scalefn)n x p data matrix
integer, typically around (and slightly larger than) \(n/2\).
logical specifying if the full (length n) observation
ordering should be returned; otherwise only the first h are.
For .detmcd(), full.h=FALSE is typical.
logical indicating if the data x is
already scaled; if false, we apply x <- doScale(x, median,
scalefn).
a function(u) to compute a robust
univariate scale of u.
The six initial estimators are
Hyperbolic tangent of standardized data
Spearmann correlation matrix
Tukey normal scores
Spatial sign covariance matrix
BACON
Raw OGK estimate for scatter
Hubert, M., Rousseeuw, P. J. and Verdonck, T. (2012) A deterministic algorithm for robust location and scatter. Journal of Computational and Graphical Statistics 21, 618–637.
a \(h' \times 6\) matrix of observation
indices, i.e., with values from \(1,\dots,n\). If
full.h is true, \(h' = n\), otherwise \(h' = h\).