Detect outliers using MAD from the median for asymmetric distributions
is_outlier_double_mad.Rd
Outlier detection based on Median Absolute Deviation (MAD) for asymmetric distributions. The function calculates the distance to the median for every value in the distribution relative to the left or right side MAD. It then compares the value to your threshold and labels the outliers.
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_double_mad(x)
#> [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
#> [13] FALSE FALSE FALSE FALSE FALSE TRUE TRUE TRUE