Computes the lower and upper boundaries based on Median Absolute Deviation (MAD) from a numeric vector. Returns c(NA_real_, NA_real_) if the input vector has less than 2 elements.
Examples
x <- c(-100,1, 2, 3, 4, 100)
k <- 1.5
get_mad_tails(x, k)
#> [1] 1 4