getHPD.boa: Calculate HPD of a parameter

Description Usage Arguments Details Value

View source: R/log_utils.R

Description

Get HPD of a posterior sample

Usage

1
getHPD.boa(data, alpha = 0.05, includeMedian = TRUE)

Arguments

data

The samples from the posterior.

alpha

The confidence level.

includleMedian

If FALSE only return the HPD limits, and not the median as well.

Details

Uses Chen and Shao algorithm as implemented in boa package.

Value

c(lower, median, upper)


laduplessis/beastio documentation built on Dec. 14, 2021, 7:04 p.m.