View source: R/outlier-tukey.R
tukey_mc_up | R Documentation |
Outlier detection threshold (upper) based on Tukey's rule, corrected for skewness using the 'medcouple', and possibly corrected for multiple testing.
tukey_mc_up(x, coef = NULL, alpha = 0.05, a = -4, b = 3)
x |
Numeric vector. Should be somewhat normally distributed. |
coef |
number determining how far 'whiskers' extend out from the box.
If |
alpha |
See |
a, b |
scaling factors multiplied by the medcouple
|
Hubert, M. and Vandervieren, E. (2008). An adjusted boxplot for skewed distributions, Computational Statistics and Data Analysis 52, 5186–5201. doi:10.1016/j.csda.2007.11.008
robustbase::adjbox()
hist(x <- c(rnorm(3, m = 6), rnorm(1e4, m = 0)))
(q <- tukey_mc_up(x))
abline(v = q, col = "red")
which(x > q)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.