Description Usage Arguments Value Examples

View source: R/MPSep_optimal_n.R

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)

1 | ```
MPSep_optimal_n(cvec, pivec, Rvec, thres_CR)
``` |

`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. |

`thres_CR` |
Threshold (acceptable level) of consumer's risk |

Minimum test sample size

1 2 | ```
pi <- pi_MCSim_dirichlet(M = 5000, seed = 10, par = c(1, 1, 1))
MPSep_optimal_n(cvec = c(1, 1), pivec = pi, Rvec = c(0.8, 0.7), thres_CR = 0.05)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.