Empirical weighted quantile
wq(x, weights, probs = c(0.5))
A numeric vector
A vector of (positive) sample weights
a numeric vector with the desired quantile levels (default 0.5, the median)
The weighted quantile (a numeric vector)
Ferrez, J., Graf, M. (2007). Enquète suisse sur la structure des salaires. Programmes R pour l'intervalle de confiance de la médiane. (Rapport de méthodes No. 338-0045). Neuchâtel: Office fédéral de statistique.