MFM_optimal_n: Optimal Test Sample Size for Multi-state RDT with Multiple...

Description Usage Arguments Value See Also Examples

View source: R/MFM_optimal_n.R

Description

Define the optimal function to find the optimal test plan with minimum test sample size given an acceptable level of consumer's risk (for Multi-state RDT, Multiple Failure Modes).

Usage

1
MFM_optimal_n(cvec, pivec, Rvec, thres_CR)

Arguments

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.

thres_CR

Threshold (acceptable level) of consumer's risk

Value

Minimum test sample size

See Also

MFM_core for getting the core probability of passting the test; MFM_consumerrisk for getting the consumer's risk; MFM_Indicator for getting the binary indicator;

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

Examples

1
2
3
pi1 <- pi_MCSim_beta(M = 5000, seed = 10, a = 1, b = 1)
pi2 <- pi_MCSim_beta(M = 5000, seed = 10, a = 2, b = 18)
MFM_optimal_n(cvec = c(1, 1), pivec = cbind(pi1, pi2), Rvec = c(0.8, 0.7), thres_CR = 0.05)

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