powered by
Define the acceptance probability function which gets the probability of passing the test (for binomial RDT).
bacceptprob(n, c, pi)
RDT sample size.
Maximum allowable failures.
Failure probability.
Acceptance probability
# NOT RUN { pi <- pi_MCSim_beta(M = 5000, seed = 10, a = 1, b = 1) bacceptprob(n = 10, c = 2, pi = pi); # }
Run the code above in your browser using DataLab