| surv_sensitivity | R Documentation |
Runs all three prevalence estimators and delay/no-delay variants on the same design, producing a comparison table. Essential for robustness checks in publications.
surv_sensitivity(
design,
lineage,
delay_fit = NULL,
time = "epiweek",
conf_level = 0.95
)
design |
A |
lineage |
Character. Target lineage. |
delay_fit |
Optional |
time |
Character. Default |
conf_level |
Numeric. Default 0.95. |
A tibble with one row per method-time combination, columns: method, time, prevalence, se, ci_lower, ci_upper.
surv_lineage_prevalence(), surv_adjusted_prevalence()
sim <- surv_simulate(n_regions = 3, n_weeks = 10, seed = 1)
d <- surv_design(sim$sequences, ~ region,
sim$population[c("region", "seq_rate")], sim$population)
surv_sensitivity(d, "BA.2.86")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.