Skip to contents

Get (Mixed) Empirical Distribution

Usage

annex_dist(x, ..., verbose = TRUE)

Arguments

x

a named vector or data.frame with empirical quantiles and sample size (optional). See Section 'Details' for more information.

verbose

Logical, if TRUE some additional output is shown.

`...`

see Section 'Details'.

Details

This function returns an annex_edist (annex empirical distribution) object which can be based on a single empirical distribution, or a (weighted) mixed distribution. annex_stats stores the empirical distribution of our measurements given a series of quantiles as well as the sample size the quantiles are based on. This function allows a series of different inputs.

Named numeric vector: x can be a named numeric vector. In this case, all the names of the vector must be unique and follow ^p[0-9]{1,3}(\.[0-9]{,2})?$. Some examples: p00 (minimum), p2 (2_th_ percentile or 0.02 quantile), p02.5 (2.5_th_ percentile or 0.025 quantile), p05 (5_th_ percentile or quantile 0.05) etc. up to p100 (maximum). Minimum (p00) and maximum (p100) must be given, the quantiles in between are handled flexible.

Author

Reto Stauffer