weighted.iqr {Rrepest} | R Documentation |
Compute interquantile range
weighted.iqr(x, w = rep(1, length(x)), rang = c(0.25, 0.75))
x |
(numeric vector) variable from where to get quantiles |
w |
(numeric vector) vector of weights |
rang |
(numeric vector) two numbers indicating the range of the quantiles |
Interquantile range
weighted.iqr(x = mtcars$mpg, w = mtcars$wt, rang = c(.5,.9))