mcmc_hdi: mcmc_hdi

View source: R/shared_functions.R

mcmc_hdiR Documentation

mcmc_hdi

Description

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

Usage

mcmc_hdi(samples, cred_mass = 0.95)

Arguments

samples

vector of values.

cred_mass

credibility mass that the interval should include (default = 0.95).

Value

Boundaries of the HDI.

Author(s)

John Kruschke


bayes4psy documentation built on Sept. 29, 2023, 5:08 p.m.