MPSep_consumerrisk {MSRDT}R Documentation

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.

Value

Probability for consumer's risk

Examples

pi <- pi_MCSim_dirichlet(M = 1000, seed = 10, par = c(1, 1, 1))
MPSep_consumerrisk(n = 10, cvec = c(1, 1), pi = pi, Rvec = c(0.8, 0.7))

[Package MSRDT version 0.1.0 Index]