hpd_interval: Highest posterior density interval (HPDI)
Description
Computes the approximate highest posterior density interval
(HPDI).
Usage
hpd_interval(x, prob = 0.95)
Value
n x 2 matrix with lower and upper boundary of the HPDI.
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