outl_det_u | R Documentation |
Perform outlier detection using univariate method.
outl_det_u(x, method = c("percentile", "median"))
x |
a numeric vector. |
method |
method for univariate outlier detection. Only |
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.
a logical vector.
Wilcox R R, Fundamentals of Modern Statistical Methods: Substantially Improving Power and Accuracy, Springer 2010 (2nd edition), pages 31-35.
Other outlier detectors:
outl_det_m()
x <- c(2, 3, 4, 5, 6, 7, NA, 9, 50, 50)
outl_det_u(x, "percentile")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.