HDIofMCMC: Highest Density Interval

Description Usage Arguments Value Author(s)

Description

Computes highest density interval 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/lazypuppy documentation built on Sept. 14, 2020, 7:33 a.m.