MPSep_consumerrisk: Consumer's Risk for Multi-state RDT with Multiple Periods and Criteria for Separate Periods
Description
Define the consumer risk function hich gets the probability of passing the test when the lower level reliability requirements are not satisfied for any cumulative periods.
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_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.