HPDI: Function to extract highest posterior density intervals. HPDI...

Description Usage Arguments Value

View source: R/HPDI.R

Description

Function to extract highest posterior density intervals. HPDI corresponds to the 'shortest' intervals that contain p fraction of the samples.

Usage

1
HPDI(x, p = 0.95)

Arguments

x

Samples of one parameter or a CMR_fit.

p

probability. Defaults to 0.95.

Value

returns hpdi and exact probability of the interval, either for the given sample or for each parameter in a CMR_fit.


josteist/Compadre documentation built on June 3, 2021, 1:02 p.m.