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).
Usage
bconsumerrisk(n, c, pi, R)
Arguments
n
RDT sample size.
c
Maximum allowable failures.
pi
Failure probability.
R
Lower level reliability requirement.
Value
Probability of consumer's risk
See Also
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;