powered by
Computes the weighted inter-quantile range of a numeric vector.
weighted.iqr(x, w = rep(1, length(x)), rang = c(0.25, 0.75))
Scalar containing the inter-quantile range
(numeric vector) Variable of interest for which to compute the inter-quantile range
(numeric vector) Vector with the weights
(numeric vector) Two numbers between 0 and 1 indicating the desired inter-quantile range
weighted.iqr(x = mtcars$mpg, w = mtcars$wt, rang = c(.5,.9))
Run the code above in your browser using DataLab