summary.mcd | R Documentation |
summary
method for class "mcd"
.
## S3 method for class 'mcd'
summary(object, ...)
## S3 method for class 'summary.mcd'
print(x, digits = max(3, getOption("digits") - 3),
print.gap = 2, ...)
object , x |
an object of class |
digits |
the number of significant digits to use when printing. |
print.gap |
number of horizontal spaces between numbers; see also
|
... |
further arguments passed to or from other methods. |
summary.mcd()
, the S3 method, simply returns an (S3) object of
class "summary.mcd"
for which there's a
print
method:
print.summary.mcd
prints summary statistics for the weighted covariance
matrix and location estimates with weights based on MCD estimates.
While the function print.mcd
prints only the robust estimates
of the location and the covariance matrix, print.summary.mcd
will
print also the correlation matrix (if requested in the call to
covMcd
with cor=TRUE
), the eigenvalues of the covariance
or the correlation matrix and the robust (“Mahalanobis”) distances.
summary.mcd
returns an summary.mcd
object, whereas the
print
methods returns its first argument via
invisible
, as all print
methods do.
covMcd
, summary
data(Animals, package = "MASS")
brain <- Animals[c(1:24, 26:25, 27:28),]
lbrain <- log(brain)
summary(cLB <- covMcd(lbrain))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.