out: Search for outliers using robust measures of location and...

Description Usage Arguments

View source: R/Rallfun-v24.R


Search for outliers using robust measures of location and scatter, which are used to compute robust analogs of Mahalanobis distance.

x is an n by p matrix or a vector of data.

The function returns the values flagged as an outlier plus the (row) number where the data point is stored. If x is a vector, out.id=4 indicates that the fourth observation is an outlier and outval=123 indicates that 123 is the value. If x is a matrix, out.id=4 indicates that the fourth row of the matrix is an outlier and outval reports the corresponding values.

The function also returns the distance of the points identified as outliers in the variable dis.

For bivariate data, if plotit=T, plot points and circle outliers.


out(x, cov.fun = cov.mve, plotit = TRUE, SEED = TRUE, xlab = "X", ylab = "Y", qval = 0.975, crit = NULL, ...)



A vector, or a 2-dim matrix


cov.fun determines how the measure of scatter is estimated. Possible choices are:

  • cov.mve: the MVE estimate

  • cov.mcd: the MCD estimate

  • covmba2: the MBA or median ball algorithm

  • rmba: an adjustment of MBA suggested by D. Olive

  • cov.roc: Rocke's TBS estimator


Should a plot be drawn? Only works for bivariate data


Set the random seed for reproducible results


Further arguments

WRS documentation built on May 31, 2017, 4:03 a.m.

Search within the WRS package
Search all R packages, documentation and source code