Learn R Programming

BMisc (version 1.4.8)

weighted_quantile: weighted_quantile

Description

function to recover quantiles of a vector with weights

Usage

weighted_quantile(tau, cvec, weights = NULL, norm = TRUE)

Value

vector of quantiles

Arguments

tau

a vector of values between 0 and 1

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