MPSep_consumerrisk: Consumer's Risk for Multi-state RDT with Multiple Periods and...

Description Usage Arguments Value Examples

View source: R/MPSep_consumerrisk.R

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

1
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

1
2
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))

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