Learn R Programming

arkhe (version 1.10.0)

interval_credible: Bayesian Credible Interval

Description

Computes the shortest credible interval within which an unobserved parameter value falls with a particular probability.

Usage

interval_credible(x, ...)

# S4 method for numeric interval_credible(x, level = 0.95)

Value

A three-columns numeric

matrix giving the lower and upper boundaries of the credible interval and associated probability.

Arguments

x

A numeric vector.

...

Currently not used.

level

A length-one numeric vector giving the confidence level.

Author

N. Frerebeau

See Also

Other summary statistics: confidence_binomial(), confidence_mean(), confidence_multinomial(), interval_hdr()

Examples

Run this code
## HDR of the Old Faithful eruption times
interval_hdr(faithful$eruptions)

Run the code above in your browser using DataLab