Learn R Programming

faoutlier (version 0.2.2)

robustMD: Robust Mahalanobis

Description

Compute Mahalanobis distances using the robust computing methods found in the MASS package.

Usage

robustMD(data, method = "mve", na.rm = TRUE, digits = 5)

  ## S3 method for class 'robmah':
print(x, ...)

  ## S3 method for class 'robmah':
summary(object, gt = 0, ...)

  ## S3 method for class 'robmah':
plot(x, y = NULL, ...)

Arguments

data
matrix or data.frame
method
type of estimation for robust means and covariance (see cov.rob
na.rm
logical; remove cases with missing data?
digits
number of digits to round in the final result
x
an object of class robmah
...
additional parameters to be passed
object
an object of class robmah
gt
only print values with MD's greater than gt
y
empty parameter passed to plot

See Also

gCD, obs.resid, LD

Examples

Run this code
data(holzinger)
output <- robustMD(holzinger)
output
summary(output)

Run the code above in your browser using DataLab