Compute highest density interval (HDI) from posterior output
Usage
ComputeHDI(data, credible.region)
Arguments
data
data to compute HDI from
credible.region
summarize uncertainty by defining a region of most credible values (e.g., 95 percent of the distribution), Default: 0.95
Value
Return HDI
Details
values within the HDI have higher probability density than values outside the HDI, and the values inside the HDI have a total probability equal to the credible region (e.g., 95 percent).