mcmc_hdi function

mcmc_hdi

mcmc_hdi

A function for calculating the HDI (highest density interval) of a vector of values.

mcmc_hdi(samples, cred_mass = 0.95)

Arguments

  • samples: vector of values.
  • cred_mass: credibility mass that the interval should include (default = 0.95).

Returns

Boundaries of the HDI.

Author(s)

John Kruschke

  • Maintainer: Jure Demšar
  • License: GPL (>= 3)
  • Last published: 2023-09-29