Description Usage Arguments Details See Also Examples
Compute quantiles of weighted data.
1 | weighted.quantile(x, w, probs = seq(0, 1, 0.25), na.rm = FALSE)
|
x |
numeric vector of observations |
w |
integer vector of weights, representing the number of
time each |
probs |
numeric vector of probabilities between 0 and 1 |
na.rm |
If |
Currently only implements the type 7 algorithm, as described in
quantile
. Based on quantile
written by R-core.
Other weighted statistics: weighted.ecdf
;
weighted.sd
, weighted.var
1 2 3 | x <- runif(200)
w <- rpois(200, 5) + 1
weighted.quantile(x, w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.