getMatrixHPD: Get HPD of a matrix of values e.g. a skyline

Description Usage Arguments Value

Description

Uses Chen and Shao algorithm as implemented in boa package.

Usage

1
getMatrixHPD(datamat, margin = 2, alpha = 0.05)

Arguments

alpha

The confidence level.

data

The samples from the posterior. Assumes by default that each row represents a posterior sample and each column a parameter (interval).

Value

3xn matrix where each column is c(lower, median, upper)


laduplessis/bdskytools documentation built on May 20, 2019, 7:33 p.m.