binci: Exact Binomial Confidence Limits

View source: R/phase2.R

binciR Documentation

Exact Binomial Confidence Limits

Description

Calculates exact confidence bounds on a single binomial probability

Usage

binci(r, n, conf = 0.95)

Arguments

r

number of successes

n

total number of trials

conf

confidence level

Details

Calculates exact 1-(1-conf)/2 upper and lower confidence limits for a binomial proportion. The precision of the solution is the default in uniroot.

Value

Returns a vector containing the two confidence limits. Returns 0 for the lower limit if r=0, and returns 1 for the upper limit if r=n.

See Also

twocon

Examples

binci(54, 88)


raredd/desmon documentation built on May 7, 2024, 3:46 p.m.