bci1: Bayesian credible interval when n=1

View source: R/bayes.R

bci1R Documentation

Bayesian credible interval when n=1

Description

Suppose X \sim N(\mu, \sigma^2). This gives you credible intervals of a specified level when we use prior \sigma = |\mu| with probability 1, and \pi(\mu) = |\mu - A|^{-1}. See the n1post() for access to the full posterior distribution.

Usage

bci1(x, A = 0, level = 0.95)

Arguments

x

a double

A

The prior center.

level

The level of the credible interval

Value

The credible interval of the specified level.

Author(s)

David Gerard

See Also

n1post(): Functions to access the full posterior distribution.

Examples

bci1(x = 1, A = 0)


nisone documentation built on Sept. 8, 2026, 5:08 p.m.