getOutliers {bulkQC}R Documentation

Function to obtain values outside of whiskers on boxplot

Description

Within vector of continuous data, identifies and outputs those values sufficiently smaller than the first quartile (Q1) or larger than the third quartile (Q3). Used in consort with ind_uni function to identify individual univariate outliers.

Usage

getOutliers(x, mult = 1.5)

Arguments

x

A vector of continuous data

mult

A multiplier on the interquartile range (IQR) to flag outliers that are mult*IQR less than Q1 or mult*IQR greater than Q3; default is 1.5

Value

Returns the subset of observations in x that are mult*IQR less than Q1 or mult*IQR greater than Q3

References

Tukey J. Exploratory Data Analysis. 1st edition. Reading, Mass: Pearson; 1977. 712 p.

See Also

ind_uni

Examples

ex = c(rnorm(95), -10, -8, 7, 9, 11)
getOutliers(ex)
getOutliers(ex, mult=3) 

[Package bulkQC version 1.1 Index]