weighted.fractile | R Documentation |
Computes the weighted fractile of a numeric vector
weighted.fractile(y, w, p)
y |
A numeric vector containing the values whose fractile is to be computed |
w |
A vector of length |
p |
Fractile specification; value between 0 and 1 |
weighted.mean
, weighted.median
y <- 1:9 w <- c(rep(1,5), rep(2,4)) res <- weighted.fractile(y, w, p = 0.33)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.