## S3 method for class 'default':
weightedQuantile(x, w, probs=c(0, 0.25, 0.5, 0.75, 1), na.rm=TRUE,
method=c("wtd.quantile"), ...)
vector
of weights the same length as
x
giving the weights to use for each element of x
.
Negative weights are treated as zero weights.
"wtd.quantile"
, then wtd.quantile
of the quantile
(if no weights are specified), or
wtd.quantile
.
For a weighted median estimator, weightedMedian
of the