weighted.quant {Rrepest}R Documentation

Weighted Quantile

Description

Computation of weighted quantiles

Usage

weighted.quant(x, w = rep(1, length(x)), q = 0.5)

Arguments

x

(numeric vector) variable from where to get quantiles

w

(numeric vector) vector of weights

q

(numeric vector) From 0 to 1 (exclusive) for the quantile desired

Value

Weighted quantile of a numeric vector

Examples

weighted.quant(x = mtcars$mpg, w = mtcars$wt,  q = seq(.1,.9,.1))


[Package Rrepest version 1.3.0 Index]