binom.conf.exact: Exact Binomial Confidence Interval

View source: R/binom.conf.exact.R

binom.conf.exactR Documentation

Exact Binomial Confidence Interval

Description

Computes an exact two-sided Clopper-Pearson confidence interval for a binomial proportion by inverting the binomial test.

Usage

binom.conf.exact(x, n, alpha = 0.05)

Arguments

x

Integer. Number of observed successes.

n

Integer. Total number of trials.

alpha

Numeric. Significance level for the confidence interval. The default is 0.05, corresponding to a 95 percent interval.

Value

A named numeric vector with three elements:

PointEst

Observed proportion, x / n.

Lower

Lower confidence limit.

Upper

Upper confidence limit.

Examples

binom.conf.exact(x = 8, n = 10)
binom.conf.exact(x = 50, n = 100, alpha = 0.01)

winratiosim documentation built on July 7, 2026, 1:07 a.m.