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


MIRES documentation built on June 8, 2025, 10:55 a.m.