CP.upper | R Documentation |
Calculates the exact Clopper-Pearson upper limit for a binomial probability based on x successes from n trials
CP.upper(x, n, a = 0.05)
x |
number of successes (integer between 0 and n inclusive) |
n |
number of binary trials |
a |
coverage error of limit |
A numeric value between 0 and 1
Chris J. Lloyd
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
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.