LR.upper {CLAST} | R Documentation |
Calculates approximate upper limit for a probability from x successes out of n binary trials based on the signed root likelihood ratio.
LR.upper(x, n, a = 0.05, epsilon = 1e-18)
x |
number of successes (integer between 0 and n inclusive) |
n |
number of binary trials |
a |
coverage error of limit |
epsilon |
Tolerance supplied to uniroot. |
A numeric values between 0 and 1
Chris J. Lloyd
# Find approximate 99% upper limit for probability based on 20 successes from 55 trials.
LR.upper(20,55,a=0.01)
# Find exact (95%) upper limit for probability from all successes.
LR.upper(5,5)