Detect outliers using turkey's fences
is_outlier_turkey.Rd
Outlier detection based on turkey's fences. Tukey’s fences is a technique used in box plots. The non-outlier range is defined as Q1−k(Q3−Q1), Q3+k(Q3−Q1), where Q1 and Q3 are the lower and upper quartiles respectively and k - some non-negative constant (popular choice is 1.5).
Examples
x <- c(1, 2, 3, 3, 4, 4, 4, 5, 5.5, 6, 6, 6.5, 7, 7, 7.5, 8, 9, 12, 52, 90)
is_outlier_turkey(x)
#> [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
#> [13] FALSE FALSE FALSE FALSE FALSE FALSE TRUE TRUE