HDIofMCMC: Highest Density Interval

Description Usage Arguments Value Author(s)

Description

Returns the Highest Density Interval (HDI) from a sample of representative values estimated as the shortest credible interval

Usage

1
HDIofMCMC(x, HDI)

Arguments

x

vector of representative values from a probability distribution

HDI

scalar between 0 and 1 indicating the mass within the credible interval that is to be estimated

Value

Invisibly a vector containing the limits of the HDI

Author(s)


David Brown
brownd7@mskcc.org


ndbrown6/EMseq documentation built on Jan. 20, 2021, 2:36 a.m.