View source: R/02-allocation.R
| surv_compare_allocations | R Documentation |
Compare multiple allocation strategies
surv_compare_allocations(
design,
strategies = c("equal", "proportional", "min_mse", "max_detection", "min_imbalance"),
total_capacity,
target_prevalence = 0.01,
...
)
design |
A |
strategies |
Character vector. Default includes all built-in. |
total_capacity |
Integer. Total sequences. |
target_prevalence |
Numeric. For detection objective. |
... |
Passed to |
A tibble comparing strategies.
sim <- surv_simulate(n_regions = 4, n_weeks = 10, seed = 1)
d <- surv_design(sim$sequences, ~ region,
sim$population[c("region", "seq_rate")], sim$population)
surv_compare_allocations(d, total_capacity = 200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.