agrestiCoullCI: Agresti-Coull confidence interval for a binomial proportion

Description Usage Arguments Value Examples

View source: R/agrestiCoullCI.R

Description

Agresti-Coull confidence interval for a binomial proportion

Usage

1
agrestiCoullCI(n1, n0, q)

Arguments

n1

number of successes/ones

n0

number of failures/zeroes

q

quantile for eventual CI (e.g. 0.95 for a 95 percent binomial CI)

Value

the approximate (q x 100) percent confidence interval for (p|n1,n0,q)

Examples

1
binom.ci <- agrestiCoullCI(10, 3, 0.95)

JordanVeldboom/compartmap documentation built on July 3, 2020, 6:32 p.m.