weighted.quantile.type7: Weighted type7 quantile estimator

View source: R/utilities.R

weighted.quantile.type7R Documentation

Weighted type7 quantile estimator

Description

Computes weighted quantiles; code from Andrey Akinshin via https://aakinshin.net/posts/weighted-quantiles/ Code made available via the CC BY-NC-SA 4.0 license

Usage

weighted.quantile.type7(x, probs, weights = NULL)

Arguments

x

A numerical vector

probs

Numerical vector of quantiles

weights

A numerical vector with weights; should have the same length as x. If no weights are provided (NULL), it falls back to the base quantile function, type 7

Value

the quantiles


cNORM documentation built on Oct. 8, 2023, 5:06 p.m.