| surv_power_curve | R Documentation |
Generates a detection probability curve that can be directly plotted or included in publications. Answers: "At what prevalence does our surveillance achieve X% detection?"
surv_power_curve(
design,
prevalence_range = seq(0.001, 0.05, by = 0.001),
delay_fit = NULL,
thresholds = c(0.5, 0.8, 0.95)
)
## S3 method for class 'surv_power_curve'
plot(x, ...)
design |
A |
prevalence_range |
Numeric vector of prevalences to evaluate.
Default |
delay_fit |
Optional |
thresholds |
Numeric vector of detection thresholds to mark.
Default |
x |
A |
... |
Additional arguments (unused). |
A list with:
Tibble with prevalence and detection columns.
Tibble with threshold, prevalence_needed columns.
A ggplot2 object.
surv_detection_probability(), surv_required_sequences()
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)
pc <- surv_power_curve(d)
pc$thresholds
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.