Functions for computing limits of HDI's: Computes highest density interval from a sample of representative values, estimated as shortest credible interval.
HDIofMCMC(sampleVec, credMass = 0.95)
a vector of representative values from a probability distribution.
is a scalar between 0 and 1, indicating the mass within the credible interval that is to be estimated.
a vector containing the limits of the HDI
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.