hpd_est {waspr}R Documentation

Compute the 95 percent Highest Posterior Density interval

Description

Compute the 95 percent Highest Posterior Density interval

Usage

hpd_est(x)

Arguments

x

a numeric vector

Value

A vector containing the lower and upper bound of the 96 Posterior Density interval of a numeric vector as computed by the methods from Venter (1967).

Source

Venter, J.H. (1967). On estimation of the mode, Annals of Mathematical Statistics, 38(5), 1446-1455.

Examples

library(waspr)
hpd_est(pois_logistic[1,1,])


[Package waspr version 1.0.1 Index]