weighted.iqr {Rrepest} | R Documentation |
Weighted Interquantile Range
Description
Compute interquantile range
Usage
weighted.iqr(x, w = rep(1, length(x)), rang = c(0.25, 0.75))
Arguments
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 |
Value
Interquantile range
Examples
weighted.iqr(x = mtcars$mpg, w = mtcars$wt, rang = c(.5,.9))
[Package Rrepest version 1.3.0 Index]