CP.upper {CLAST} R Documentation

## Calculates Clopper-Pearson upper limit

### Description

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

### Usage

CP.upper(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

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% upper limit for probability based on 20 successes from 55 trials.
CP.upper(20,55,a=0.01)
# Find exact (95%) upper limit for probability from all successes.
CP.lower(5,5)


[Package CLAST version 1.0.1 Index]