Gets hospitalization data that model will be trained on
Usage
get_hosp_data(
hosp_data_source,
geo_type,
forecast_date,
hosp_data_dir,
population_data_path,
pull_from_local = FALSE
)
Arguments
- hosp_data_source
Source of hospitalization data from which to pull. Options include "NHSN" and "covidcast".
- geo_type
type of geographic region for which to pull data
- forecast_date
date for which we are producing a forecast
- hosp_data_dir
if pulling from local, where to get the data from
- population_data_path
path to a table of state populations
- pull_from_local
if TRUE, look for local files first, default value is FALSE