Calculate weighted percentile
weighted.percentile.RdComputes the weighted percentile of a numeric vector given weights. Use for summarizing survey or model outputs at arbitrary percentiles.
Details
Orders values and weights.
Computes cumulative probability and finds closest to target percentile.
Returns weighted percentile value.
See also
weighted.median
Other utility functions:
archive_file(),
clip.vector(),
fillna(),
weighted.median()