Learn R Programming

serieslcb (version 0.1.0)

bayes_uniform: Bayes' method (Uniform prior)

Description

Calculate a binomial series lower confidence bound using Bayes' method with a uniform prior distribution.

Usage

bayes_uniform(s, n, alpha, MonteCarlo, ...)

Arguments

s

Vector of successes.

n

Vector of sample sizes.

alpha

The significance level; to calculate a 100(1-\(\alpha\))% 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-\(\alpha\))% lower confidence bound.

Examples

Run this code
# NOT RUN {
bayes_uniform(s=c(35, 97, 59), n=c(35, 100, 60), alpha=.10, MonteCarlo=1000)
# }

Run the code above in your browser using DataLab