View source: R/import_model_source.R
Run importation sims
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | run_importations(
n_sim = 100,
cores = 5,
get_detection_time = FALSE,
travel_dispersion = 3,
allow_travel_variance = FALSE,
print_progress = TRUE,
output_dir = file.path("output", paste0(paste(dest, collapse = "+"), "_",
as.Date(Sys.Date()))),
param_list = list(incub_mean_log = log(5.89), incub_sd_log = log(1.74),
inf_period_nohosp_mean = 15, inf_period_nohosp_sd = 5, inf_period_hosp_mean_log =
1.23, inf_period_hosp_sd_log = 0.79, p_report_source = c(0.05, 0.25)),
drop_zeros = FALSE,
file_nums = NA
)
|
n_sim |
numeric, number of simulations |
cores |
numeric, number of cores to run in parallel |
get_detection_time |
logical |
travel_dispersion |
numeric |
allow_travel_variance |
logical |
print_progress |
logical |
param_list |
list, with the following elements
|
drop_zeros |
Whether to drop zeros from results to speed up and reduce file sizes |
file_nums |
File numbers to input if the simualation got interrupted |
dest |
character string, name of destination to simulate importations for |
dest_type |
character string, options: "airport", "city", "state", "country" |
dest_0 |
optional character string, specify a higher level destination (i.e. dest_0="USA"), default NULL |
dest_0_type |
optional character string, must specify if specifying a 'dest_0' option; default=NULL |
dest_aggr_level |
character string, level to which travel will be aggregated for destination. Includes "airport", "city", "state", "country", "metro" (only available for CA currently) |
project_name |
character string |
version |
character string |
batch |
character string |
end_date |
Date, last import date |
n_top_dests |
Number of destinations to include, ranked by volume; default (Inf) is all. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.