Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wquantile

Weighted quantile


Description

Compute the weighted quantile of order p.

Usage

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

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

extremefit

Estimation of Extreme Conditional Quantiles and Probabilities

v1.0.2
GPL-2
Authors
Gilles Durrieu, Ion Grama, Kevin Jaunatre, Quang-Khoai Pham, Jean-Marie Tricot
Initial release
2019-05-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.