dot-hdi: Compute Highest Posterior Density intervals.

.hdiR 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


stephensrmmartin/MIRES documentation built on June 14, 2025, 4:27 p.m.