HPDI: A function to get Highest Posterior Density Interval

View source: R/HPDI.R

HPDIR Documentation

A function to get Highest Posterior Density Interval

Description

This is a simple helper function to get density intervals. See McElreaths Rethinking for details.

Usage

HPDI(samples, prob = 0.89)

Arguments

samples

A vector of samples to summarize.

prob

Interval range.

Value

A vector of intervals.


ctross/STRAND documentation built on Feb. 13, 2025, 1:04 p.m.