# wtd.quantile: Weighted Quantiles

## Description

Compute weighted quantile

## Usage

wtd.quantile (x, q=0.5, na.rm = FALSE, weight=FALSE)

## Arguments

x

Vector of data, same length as `weight`

na.rm

Logical: Should NAs be stripped before computation proceeds?

## Value

Returns an empirical q quantile from a weighted sample.

## Details

Uses a simple algorithm based on sorting.