.hdi {MIRES} | R Documentation |
Compute Highest Posterior Density intervals.
Description
Compute Highest Posterior Density intervals.
Usage
.hdi(samps, prob, add_zero = FALSE)
Arguments
samps |
MCMC sample matrix. |
prob |
Numeric in (0,1). |
add_zero |
Logical (Default: FALSE) - Whether to add zero to samples. Useful for unidirectional effects. |
Value
Matrix of HDIs.
Author(s)
Stephen Martin
[Package MIRES version 0.1.1 Index]