wilsonInt: Calculate the Wilson score interval

View source: R/misc.R

wilsonIntR Documentation

Calculate the Wilson score interval

Description

Calculate the Wilson score interval

Usage

wilsonInt(nTrue, nFalse, alpha = 0.05)

Arguments

nTrue

single number of trues observed

nFalse

single number of falses observed

alpha

error percentile

Value

two element vector giving the lower and upper bounds of the interval

References

http://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval

Examples

wilsonInt(10,100)
wilsonInt(0,100)
wilsonInt(100,1)

sherrillmix/dnar documentation built on July 18, 2022, 10:07 p.m.