run_full_distrib_imports: run_full_distrib_imports

Description Usage Arguments Value

View source: R/airport_to_county_import_distrib.R

Description

Sum importation counts to airport attribution clusters Airport clusters are generated using 'do_airport_attribution' for aiports in close proximity to each other e.g. ORD/MDY, DCA/IAD, SFO/OAK

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
run_full_distrib_imports(
  states_of_interest = c("CA", "NV", "WA", "OR", "AZ"),
  regioncode = "west-coast-AZ-NV",
  yr = 2010,
  travelers_threshold = 10000,
  airport_cluster_threshold = 80,
  mean_travel_file = file.path("data", "travel_mean.csv"),
  shapefile_path = NULL,
  model_output_dir = file.path("model_output", "importation"),
  local_dir = "data",
  plot = FALSE,
  cores = 5,
  n_sim = 10
)

Arguments

states_of_interest

States for which to get county populations

regioncode

Region/project name

yr

Year of county population data

travelers_threshold

Minimum monthly average travel volume to be included

airport_cluster_threshold

Distance by which airports can be separated to be in the same cluster, in km; Haversine distance.

mean_travel_file

Filename of monthly mean travelers into each airport in the region

local_dir

local data directory

imports_sim_file

file name root for each importation simulation.

Value

A data.frame of clustered airports, dates, and nmber of importations


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