Description Usage Arguments Value See Also Examples
View source: R/bconsumerrisk.R
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).
| 1 | 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;
| 1 2 | pi <- pi_MCSim_beta(M = 1000, seed = 10, a = 1, b = 1)
bconsumerrisk(n = 10, c = 2, pi = pi, R = 0.8);
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.