HDIofMCMC: Functions for computing limits of HDI's: Computes highest...

Description Usage Arguments Value

Description

Functions for computing limits of HDI's: Computes highest density interval from a sample of representative values, estimated as shortest credible interval.

Usage

1
HDIofMCMC(sampleVec, credMass = 0.95)

Arguments

sampleVec

a vector of representative values from a probability distribution.

credMass

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

Value

a vector containing the limits of the HDI


kyusque/DBDA2E-utilities documentation built on May 5, 2019, 1:37 p.m.