boptimal_n {BRDT}R Documentation

Optimal Test Sample Size for Binomial RDT

Description

Define the optimal function to find the optimal test plan with minimum test sample size given an acceptable level of consumer's risk (for binomial RDT).

Usage

boptimal_n(c, pi, R, thres_CR)

Arguments

c

Maximum allowable failures

pi

Failure probability

R

Lower level reliability requirement

thres_CR

Threshold (acceptable level) of consumer's risk

Value

Minimum test sample size

See Also

boptimal_cost for getting the optial test plan with minimum overall cost; bdata_generator for generating optimal test plans dataset;

Examples


pi <- pi_MCSim_beta(M = 5000, seed = 10, a = 1, b = 1)
boptimal_n(c = 2, pi = pi, R = 0.8, thres_CR = 0.05)


[Package BRDT version 0.1.0 Index]