run_importations: Run importation sims

Description Usage Arguments

View source: R/import_model_source.R

Description

Run importation sims

Usage

 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
)

Arguments

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

  • incub_mean_log numeric, the mean_log parameter for the lnorm distribution for the incubation period

  • incub_sd_log numeric, the sd_log parameter for the lnorm distribution for the incubation period

  • inf_period_nohosp_mean numeric, the mean parameter of a truncated normal distribution for the infectious period for non-hospitalized infections

  • inf_period_nohosp_sd numeric, the sd parameter of a truncated normal distribution for the infectious period for non-hospitalized infections

  • inf_period_hosp_mean_log numeric, the log-mean parameter of a log-normal distribution for the infectious period for time to hospitalization

  • inf_period_hosp_sd_log numeric, the log-sd parameter of a log-normal distribution for the infectious period for time to hospitalization

  • p_report_source numeric vector of length 2, currently the probability of reporting by source with the first indicating Hubei reporting and second indicating everywhere else (UPDATE WITH THESE https://cmmid.github.io/topics/covid19/severity/global_cfr_estimates.html)

  • shift_incid_days lag from infection to report

  • delta days per time period

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.


HopkinsIDD/covidImportation documentation built on Sept. 14, 2020, 2:43 p.m.