powered by
Computes weighted quantiles of a numeric vector.
weighted.quant(x, w = rep(1, length(x)), q = 0.5)
Scalar containing the quantile
(numeric vector) Variable of interest for which to compute the quantile
(numeric vector) Vector with the weights
(numeric vector) A number between 0 and less than 1 indicating the desired quantile
weighted.quant(x = mtcars$mpg, w = mtcars$wt, q = seq(.1,.9,.1))
Run the code above in your browser using DataLab