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