wquantile: Weighted quantile

Description Usage Arguments Details Value Examples

Description

Compute the weighted quantile of order p.

Usage

1
wquantile(X, p, weights = rep(1, length(X)))

Arguments

X

a vector of data.

p

a vector of probabilities.

weights

the weights assiociated to the vector X.

Details

Give the weighted quantile for a given p

Value

A vector of quantile assiociated to the probabilities vector given in input.

Examples

1
2
3
X <- rpareto(10)
p <- seq(0.01, 0.99, 0.01)
plot(p, wquantile(X, p, rep(1,length(X))), type = "s")

extremefit documentation built on May 6, 2019, 1:10 a.m.