hpd_interval {sectorgap}R Documentation

Highest posterior density interval (HPDI)

Description

Computes the approximate highest posterior density interval (HPDI).

Usage

hpd_interval(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

Value

n x 2 matrix with lower and upper boundary of the HPDI.


[Package sectorgap version 0.1.0 Index]