HPDinterval: Computes the approximate highest posterior density interval (HPDI).
Description
Computes the approximate highest posterior density interval (HPDI).
Usage
HPDinterval(x, prob = 0.95)
Arguments
- x
A R x n
matrix with R
draws of n
variables.
- prob
The probability mass of the interval, a scalar between zero and one.