weighted_quantities: Weighted quantities

weighted_quantitiesR Documentation

Weighted quantities

Description

Weighted version of common quantities of interest.

Arguments

x

Numeric vector to calculate quantity from.

weights

Vector of weights corresponding to values in x.

probs

Vector of probabilities for quantiles.

type

Character vector specifying type of quantiles (either "7" for Type 7 (default) or "hd" for Harrell-Davis)

...

Currently unused.

Value

Named vector of calculated quantity.


n-kall/priorsense documentation built on Nov. 4, 2024, 10:30 p.m.