Learn R Programming

rrcov (version 0.4-08)

CovClassic: Classical Estimates of Multivariate Location and Scatter

Description

Computes the classical estimates of multivariate location and scatter. Returns an S4 class CovClassic with the estimated center, cov, Mahalanobis distances and weights based on these distances.

Usage

CovClassic(x, unbiased=TRUE)
    Cov(x, unbiased=TRUE)

Arguments

x
a matrix or data frame. As usual, rows are observations and columns are variables.
unbiased
whether to return the unbiased estimate of the covariance matrix. Default is unbiased = TRUE

Value

  • An object of class "CovClassic".

concept

High breakdown point

See Also

Cov-class, CovClassic-class

Examples

Run this code
data(hbk)
hbk.x <- data.matrix(hbk[, 1:3])
cv <- CovClassic(hbk.x)
cv
summary(cv)
plot(cv)

Run the code above in your browser using DataLab