Learn R Programming

robust (version 0.3-0)

summary.covfm: Summary Method

Description

The generic summary method for objects of class "cov", "covRob", and "covfm".

Usage

## S3 method for class 'cov':
summary(object, ...)
## S3 method for class 'covRob':
summary(object, ...)
## S3 method for class 'covfm':
summary(object, ...)

Arguments

object
an object of class "cov", "covRob", or "covfm".
...
additional arguments for the summary method.

Value

  • an object of class "summary.cov", "summary.covRob", or "summary.covfm" respectively. Objects of class "summary.cov" and "summary.covRob" have the following components. Objects of class "summary.covfm" are lists whose elements are "summary.cov" and "summary.covRob" objects.
  • callan image of the call that produced the object with all the arguments named.
  • cova numeric matrix containing the estimate of the covariance/correlation matrix.
  • centera numeric vector containing the estimate of the location vector.
  • evalsa numeric vector containing the eigenvalues of the covariance/correlation matrix.
  • dista numeric vector containing the Mahalanobis distances. Only present if distance = TRUE in the call.
  • corra logical flag. If corr = TRUE then cov contains an estimate of the correlation matrix of x.

See Also

summary, cov, covRob, fit.models.

Examples

Run this code
data(woodmod.dat)
  woodmod.cov <- cov(woodmod.dat)
  woodmod.sc <- summary(woodmod.cov)

  woodmod.covRob <- covRob(woodmod.dat)
  woodmod.scr <- summary(woodmod.covRob)

  woodmod.fm <- fit.models(list(Robust = "covRob", Classical = "cov"), data = woodmod.dat)
  woodmod.sfm <- summary(woodmod.fm)

Run the code above in your browser using DataLab