HPDI: A function to get Highest Posterior Density Interval

HPDIR Documentation

A function to get Highest Posterior Density Interval

Description

This is a simple helper function to get density intervals. See McElreath's 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 Nov. 14, 2024, 11:50 p.m.