R/vartrack_samplesize_detect_xsect.R
vartrack_samplesize_detect_xsect.Rd
This function calculates the sample size needed for detecting the presence of a variant given a desired probability of detection and assuming a single, cross-sectional sample of detected infections.
vartrack_samplesize_detect_xsect(p_v1, prob, omega, c_ratio = 1)
variant prevalence (proportion)
desired probability of detection
probability of sequencing (or other characterization) success
coefficient of detection ratio, calculated as the ratio of the coefficients of variant 1 to variant 2. Default = 1 (no bias)
scalar of expected sample size
Other variant detection functions:
vartrack_prob_detect_cont()
,
vartrack_prob_detect_xsect()
,
vartrack_prob_detect()
,
vartrack_samplesize_detect_cont()
,
vartrack_samplesize_detect()
Other variant tracking functions:
vartrack_cod_ratio()
,
vartrack_prob_detect_cont()
,
vartrack_prob_detect_xsect()
,
vartrack_prob_detect()
,
vartrack_prob_prev_xsect()
,
vartrack_prob_prev()
,
vartrack_samplesize_detect_cont()
,
vartrack_samplesize_detect()
,
vartrack_samplesize_prev_xsect()
,
vartrack_samplesize_prev()
vartrack_samplesize_detect_xsect(p_v1 = 0.1, prob = 0.95, omega = 0.8, c_ratio = 1)
#> [1] 35.54145