getWeightedQuantile | R Documentation |
Finds the quantile by optimizing the weighted check function
getWeightedQuantile(tau, cvec, weights = NULL, norm = TRUE)
tau |
between 0 and 1, ex. .5 implies get the median |
cvec |
a vector to compute quantiles for |
weights |
the weights, weighted.checkfun normalizes the weights to sum to 1. |
norm |
normalize the weights so that they have mean of 1, default is to normalize |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.