HPDinterval: Computes the approximate highest posterior density interval...

View source: R/utils_bayes.R

HPDintervalR Documentation

Computes the approximate highest posterior density interval (HPDI).

Description

Computes the approximate highest posterior density interval (HPDI).

Usage

HPDinterval(x, prob = 0.95)

Arguments

x

A R x n matrix with R draws of n variables.

prob

The probability mass of the interval, a scalar between zero and one.


RGAP documentation built on Nov. 2, 2023, 6:02 p.m.