R/utils.R

Defines functions tukey_iqr_bounds

tukey_iqr_bounds <- function(y) {
    q1          <- stats::quantile(y, 0.25)
    q3          <- stats::quantile(y, 0.75)
    iqr         <- q3 - q1
    lower.bound <- q1 - 1.5 * iqr
    upper.bound <- q3 + 1.5 * iqr
    return(c(lower.bound, upper.bound))
}

Try the dScoreTest package in your browser

Any scripts or data that you put into this service are public.

dScoreTest documentation built on Sept. 3, 2026, 1:06 a.m.