outl.det.u {qcrlscR} | R Documentation |
Univariate outlier detection
Description
Perform outlier detection using univariate method.
Usage
outl.det.u(x, method = c("percentile", "median"))
Arguments
x |
a numeric vector. |
method |
method for univariate outlier detection. Only |
Details
-
median
: the absolute difference between the observation and the sample median is larger than 2 times of the Median Absolute Deviation divided by 0.6745. -
percentile
: either smaller than the 1st quartile minus 1.5 times of IQR, or larger than the 3rd quartile plus 1.5 times of IQR.
Value
a logical vector.
References
Wilcox R R, Fundamentals of Modern Statistical Methods: Substantially Improving Power and Accuracy, Springer 2010 (2nd edition), pages 31-35.
Examples
x <- c(2, 3, 4, 5, 6, 7, NA, 9, 50, 50)
outl.det.u(x, "percentile")
[Package qcrlscR version 0.1.3 Index]