bayes_jeffreys: Bayesian method (Jeffrey's prior)

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Calculate a binomial series lower confidence bound using Bayes' method with Jeffrey's prior.

Usage

1
bayes_jeffreys(s, n, alpha, MonteCarlo, ...)

Arguments

s

Vector of successes.

n

Vector of sample sizes.

alpha

The significance level; to calculate a 100(1-α)% lower confidence bound.

MonteCarlo

Number of samples to draw from the posterior distribution for the Monte Carlo estimate.

...

Additional arguments to be ignored.

Value

The 100(1-α)% lower confidence bound.

Examples

1
bayes_jeffreys(s=c(35, 97, 59), n=c(35, 100, 60), alpha=.10, MonteCarlo=1000)

serieslcb documentation built on July 9, 2019, 9:03 a.m.