bacceptprob {BRDT} | R Documentation |
Define the acceptance probability function which gets the probability of passing the test (for binomial RDT).
bacceptprob(n, c, pi)
n |
RDT sample size. |
c |
Maximum allowable failures. |
pi |
Failure probability. |
Acceptance probability
pi <- pi_MCSim_beta(M = 5000, seed = 10, a = 1, b = 1)
bacceptprob(n = 10, c = 2, pi = pi);