hpd: Calculate highest posterior density intervals for MCMC sample

Description Usage Arguments Value Author(s)

Description

this function finds the highest posterior density intervals for a vector x.

Usage

1
hpd(x, prob = 0.95)

Arguments

x

A numeric vector to summarize.

prop

The probability that the interval will contain. The default is 0.95.

Value

The endpoints of the interval

Author(s)

Ander Wilson


AnderWilson/smurf documentation built on May 5, 2019, 4:57 a.m.