setup_and_run_importations: Set up and run importation sims

Description Usage Arguments

View source: R/import_model_source.R

Description

Set up and run importation sims

Usage

 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)
)

Arguments

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

  • 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

end_date

Date, last import date


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