MFM_consumerrisk: Consumer's Risk for Multi-state RDT with Multiple Failure...

Description Usage Arguments Value See Also Examples

View source: R/MFM_consumerrisk.R

Description

Define the consumer risk function which gets the probability of passing the test when the lower level reliability requirements are not satisfied under different failure modes (for Multi-state RDT, Multiple Failure Modes).

Usage

1
MFM_consumerrisk(n, cvec, pivec, Rvec)

Arguments

n

RDT sample size

cvec

Maximum allowable failures for each separate period

pivec

Failure probability for each seperate period

Rvec

Lower level reliability requirements for each cumulative period from the begining of the test.

Value

Probability for consumer's risk

See Also

MFM_core for getting the core probability of passting the test; MFM_Indicator for getting the binary indicator; MFM_optimal_n for getting the optimal test sample size;

Other MSRDT for MFM functions: MFM_Indicator(), MFM_core(), MFM_optimal_n()

Examples

1
2
3
pi1 <- pi_MCSim_beta(M = 1000, seed = 10, a = 1, b = 1)
pi2 <- pi_MCSim_beta(M = 1000, seed = 10, a = 2, b = 18)
MFM_consumerrisk(n = 10, cvec = c(1, 1), pivec = cbind(pi1, pi2), Rvec = c(0.8, 0.7))

MSRDT documentation built on July 2, 2020, 2:13 a.m.