bconsumerrisk {BRDT} | R Documentation |
Define the consumer's risk function which gets the probability of passing the test when the lower level reliability requirement is not satisfied (for binomial RDT).
bconsumerrisk(n, c, pi, R)
n |
RDT sample size. |
c |
Maximum allowable failures. |
pi |
Failure probability. |
R |
Lower level reliability requirement. |
Probability of consumer's risk
bcore
for getting the core probability of passting the test;
boptimal_n
for getting the optimal test sample size;
bIndicator
for getting the binary indicator;
pi <- pi_MCSim_beta(M = 1000, seed = 10, a = 1, b = 1)
bconsumerrisk(n = 10, c = 2, pi = pi, R = 0.8);