View source: R/13-infrastructure.R
| surv_quality | R Documentation |
Returns a single-row tibble of design quality indicators suitable
for inclusion in manuscripts. Analogous to broom::glance() but
for the surveillance design itself.
surv_quality(design, target_lineage = NULL, target_prevalence = 0.01)
design |
A |
target_lineage |
Character or |
target_prevalence |
Numeric. For detection calculation. Default 0.01. |
A single-row tibble with columns: n_obs, n_strata, gini, rate_ratio, effective_n, deff, detection_prob, mean_bias.
surv_report(), surv_design()
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_quality(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.