wtd.quantile

0th

Percentile

Weighted Quantiles

Compute weighted quantile

Keywords
robust
Usage
wtd.quantile (x, q=0.5, na.rm = FALSE, weight=FALSE)
Arguments
x
Vector of data, same length as weight
q
Quantile to compute
na.rm
Logical: Should NAs be stripped before computation proceeds?
weight
Vector of weights
Details

Uses a simple algorithm based on sorting.

Value

Returns an empirical q quantile from a weighted sample.

Aliases
  • wtd.quantile
Documentation reproduced from package reldist, version 1.6-6, License: GPL-3 + file LICENSE

Community examples

Looks like there are no examples yet.