Description Usage Arguments Value Author(s) Examples
View source: R/condition_and_report_on_cases.R
Condition on cases and return accepted sample size by scenario
1 2 3 4 5 6 7 8 9 10 |
sims |
A data.table from |
condition_date |
A character string in the following format |
lower_bound |
Numeric, the estimated lower bound on cases. |
upper_bound |
Numeric, the estimated upper bound on cases. |
samples |
Numeric, the number of samples that were used. |
end_of_seed_date |
A character string in the following format |
scenarios_list |
A character vector listing scenarios evaluated. |
A list of 3 data.frames as produced by condition_on_known
, proportion_allowed_by_condition
, and
restrict_by_condition
.
Sam Abbott
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Example
sims <- data.frame(time = rep(1:10, 10),
size = rep(1:10, 10),
sample = unlist(lapply(1:10, function(.) {rep(., 10)})),
scenario = c(rep(1, 5), rep(1, 5)),
tmp = c(rep(1, 5), rep(1, 5)),
event_duration = 1
)
condition_and_report_on_cases(sims, condition_date = "2020-01-03", lower_bound = 3, upper_bound = 5,
scenarios_list = c("scenario", "tmp"), samples = 10)
## Code
condition_and_report_on_cases
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.