hpd: Compute a highest posterior density (HPD) interval.

View source: R/gower.R

hpdR Documentation

Compute a highest posterior density (HPD) interval.

Description

Compute a highest posterior density (HPD) interval.

Usage

hpd(x, alpha = 0.05)

Arguments

x

the posterior sample.

alpha

the desired significance level.

Details

This function uses a given posterior sample to compute an HPD interval at a given significance level.

Value

A 2-vector containing the lower endpoint and the upper endpoint, respectively.


goweragreement documentation built on Sept. 11, 2024, 7:20 p.m.