MPSep_optimal_n: Optimal Test Sample Size for Multi-state RDT with Multiple Periods and Criteria for Separate Periods
Description
Define the optimal function to find the optimal test plan with minimum test sample size given an acceptable level of consumer's risk.
The maximum allowable failures for each separate period need to be satisfied to pass the test (for Multi-state RDT, Multiple Periods, Scenario I)
Usage
MPSep_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.