Description Usage Arguments Value Author(s) Examples
View source: R/proportion_allowed_by_condition.R
Proportion of samples per scenario allowed by condition
1 2 3 4 5 6 | proportion_allowed_by_condition(
sims,
samples = NULL,
group_var = c("scenario", "event_duration", "event_size", "serial_mean", "upper_R0",
"lower_R0")
)
|
sims |
A data.table from |
samples |
Numeric, the number of samples that were used. |
group_var |
Character vector, the grouping variables to use to split scenarios. |
A data.table listing the proportion allowed by scenario
Sam Abbott
1 2 3 4 5 6 7 8 9 | ## Example
sims <- data.table::data.table(sample = 1:10, event_duration = 1,
event_size = 1:10)
proportion_allowed_by_condition(sims, samples = 100,
group_var = c("event_duration"))
## Code
proportion_allowed_by_condition
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.