MPCum_consumerrisk: Consumer's Risk for Multi-state RDT with Multiple Periods and Criteria for Cumulative Periods
Description
Define the consumer risk function which 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 cumulative period need to be satisfied to pass the test (for Multi-state RDT, Multiple Periods, Scenario I)
Usage
MPCum_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.