powered by
computes interquartile range of the x values. Weights are supported.
IQRw(x, weights = NULL, na.rm = FALSE, type = 7)
a numeric vector.
an optional numeric vector giving the sample weights.
logical. Should missing values be removed?
an integer selecting one of the many quantile algorithms, see Quantile().
Quantile()
This implementation is based on Quantile() function, which allows to define weights.
Median(), Quantile(), IQR(), quantile()
Median()
IQR()
quantile()
# NOT RUN { x <- c(3.7,3.3,3.5,2.8) w <- c(5, 5, 4, 1)/15 IQRw(x=x, weights=w) # }
Run the code above in your browser using DataLab