View source: R/import_model_source.R
Set up and run importation sims
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | setup_and_run_importations(
dest = "UT",
dest_type = c("state"),
dest_country = "USA",
dest_aggr_level = c("airport"),
project_name = "Utah_import",
version = "global",
batch = "1st",
first_date = ISOdate(2019, 12, 1),
last_date = Sys.time(),
update_case_data = TRUE,
case_data_dir = "data/case_data",
check_saved_data = TRUE,
save_case_data = TRUE,
get_travel = TRUE,
n_sim = 100,
cores = 4,
n_top_dests = Inf,
get_detection_time = FALSE,
travel_dispersion = 3,
allow_travel_variance = FALSE,
print_progress = TRUE,
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),
shift_incid_days = -10, delta = 1)
)
|
dest |
character string, name of destination to simulate importations for |
dest_type |
character string, options: "airport", "city", "state", "country" |
dest_country |
optional character string, specify a higher level destination (i.e. dest_0="USA"), 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 |
n_sim |
numeric, number of simulations |
cores |
numeric, number of cores to run in parallel |
n_top_dests |
Number of destinations to include, ranked by volume; default (Inf) is all. |
get_detection_time |
logical |
travel_dispersion |
numeric |
allow_travel_variance |
logical |
print_progress |
logical |
param_list |
list, with the following elements
|
end_date |
Date, last import date |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.