Description Usage Arguments Details Examples
Detect outlier using Boxplot rule
1 |
x |
An R object. Currently there are methods for
numeric/logical vectors and date,
date-time and time interval objects. Complex vectors
are allowed for |
mbox |
Logical; Using the modification of the boxplot rule suggested by Carling (2000). Defaults to FALSE. See https://www.researchgate.net/publication/4894204_Resistant_outlier_rules_and_the_non-Gaussian_case for more details |
gval |
Length of the whiskers as multiple of IQR. Defaults to 1.5 |
plotit |
Logical; Plot it or not? |
It is based on the fundamental strategy of avoiding masking by replacing the mean and standard deviation with measures of location and dispersion that are relatively insensitive to outliers.
In particular, the boxplot rule declares the value X an outlier if
X < ql − 1.5(qu − ql )
or
X > qu − 1.5(qu − ql )
So, the rule is based on the lower and upper quartiles, as well as the interquartile range, which provide resistance to outliers.
The ideal fourths are used to estimate the quartiles.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.