Learn R Programming

MFHD (version 0.0.1)

MFHD_bagplot: Computes the bagplot for the MFHD algorithm.

Description

This is an internal function not intended to be called by the user. This function is a minimally modified adaptation of "aplpack::bagplot". The main difference is that while aplpack::bagplot returns the coordinate of the observations outside the fence, this version returns the index of the observations outside the fence. For more details, see help("aplpack::bagplot").

Usage

MFHD_bagplot(x, y,factor=3,approx.limit=300,verbose=FALSE)

Arguments

x
x values of a data set; in "bagplot": an object of class "bagplot" computed by "compute.bagplot".
y
y values of the data set.
factor
Expanding factor of the fence.
approx.limit
if the number of data points exceeds "approx.limit" a sample is used to compute some of the quantities; default: 300.
verbose
automatic commenting of calculations.

Value

Returns a list. Component "center" is a two dimensional vector with the coordinate of the center. Component outliers is a n-vector of binary values (the observations outside the fence are assigned value 1).

References

P. J. Rousseeuw, I. Ruts, J. W. Tukey (1999): The bagplot: a bivariate boxplot, The American Statistician, vol. 53, no. 4, 382--387.