bconsumerrisk: Consumer's Risk for Binomial RDT

Description Usage Arguments Value See Also Examples

View source: R/bconsumerrisk.R

Description

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

1
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;

Examples

1
2
pi <- pi_MCSim_beta(M = 1000, seed = 10, a = 1, b = 1)
bconsumerrisk(n = 10, c = 2, pi = pi, R = 0.8);

BRDT documentation built on July 1, 2020, 9:35 p.m.