hdi_of_icdf: 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, ...)
Value
Named numeric vector with elements ll and ul.
Arguments
- qfun
Quantile function, e.g., qbeta, qnorm, ...
- width
Desired HDI mass (e.g., 0.95).
- tol
Optimizer tolerance.
- ...
Additional arguments passed to qfun.