HPDcrd: generates the 100 * (1 - alpha)% most probable interval of a...

Description Usage Arguments Value Author(s) References Examples

View source: R/HPDcrd.R

Description

function used to produce a Bayesian credible interval of a unimodal distribution of empirical values using the Highest Posterior Probability approach

Usage

1
HPDcrd(x, alpha = 0.05)

Arguments

x

a vector of empirical values

alpha

1 - alpha is the desired level of credibility

Value

a vector of the lower and upper limits of the 95% credible interval calculated using a standard algorithm

Author(s)

Robert van Hulst

References

van Hulst, R. 2018. Evaluating Scientific Evidence. ms.

Examples

1
HPDcrd(rnorm(1000))

evidence documentation built on May 2, 2019, 2:14 p.m.