vartrack_samplesize_prev_xsect {phylosamp} | R Documentation |
Calculate sample size needed for variant prevalence estimation under cross-sectional sampling
Description
This function calculates the sample size needed for estimating variant prevalence given a desired confidence and desired precision in the variant prevalence estimate and assuming a single, cross-sectional sample of detected infections.
Usage
vartrack_samplesize_prev_xsect(p_v1, prob, precision, omega, c_ratio = 1)
Arguments
p_v1 |
variant prevalence (proportion) |
prob |
desired confidence in variant prevalence estimate |
precision |
desired precision in variant prevalence estimate |
omega |
probability of sequencing (or other characterization) success |
c_ratio |
coefficient of detection ratio, calculated as the ratio of the coefficients of variant 1 to variant 2. Default = 1 (no bias) |
Value
scalar of sample size
Author(s)
Shirlee Wohl, Elizabeth C. Lee, Bethany L. DiPrete, and Justin Lessler
See Also
Other variant prevalence estimation functions:
vartrack_prob_prev_xsect()
,
vartrack_prob_prev()
,
vartrack_samplesize_prev()
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_xsect()
,
vartrack_samplesize_detect()
,
vartrack_samplesize_prev()
Examples
vartrack_samplesize_prev_xsect(p_v1 = 0.1, prob = 0.95, precision = 0.25, omega = 0.8, c_ratio = 1)