CP.lower: Calculates Clopper-Pearson lower limit

CP.lowerR Documentation

Calculates Clopper-Pearson lower limit

Description

Calculates the exact Clopper-Pearson lower limit for a binomial probability based on x successes from n trials

Usage

CP.lower(x, n, a = 0.05)

Arguments

x

number of successes (integer between 0 and n inclusive)

n

number of binary trials

a

coverage error of limit

Value

A numeric value between 0 and 1

Author(s)

Chris J. Lloyd

References

Clopper, C. and Pearson, E. S. (1934). The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika, 26 (4): 404-413. doi: 10.2307/2331986

Examples

# Find exact 99% lower limit for probability based on 20 successes from 55 trials.
CP.lower(20,55,a=0.01)
# Find exact (95%) lower limit for probability based on all failures.
CP.lower(0,5)

CLAST documentation built on April 8, 2022, 9:06 a.m.