hdi_of_icdf: Highest Density Interval from an Inverse CDF

View source: R/beta-binom-analytic.R

hdi_of_icdfR Documentation

Highest Density Interval from an Inverse CDF

Description

Computes an HDI of given mass from any distribution for which you have a quantile function (inverse CDF).

Usage

hdi_of_icdf(qfun, width = 0.95, tol = 1e-08, ...)

Arguments

qfun

Quantile function, e.g., qbeta, qnorm, ...

width

Desired HDI mass (e.g., 0.95).

tol

Optimizer tolerance.

...

Additional arguments passed to qfun.

Value

Named numeric vector with elements ll and ul.


powerbrmsINLA documentation built on July 2, 2026, 5:07 p.m.