get.cdc: Retrieve incidence data from CDC server.

Description Usage Arguments

View source: R/data_fxns.R

Description

This function is generally called by get.DICE.data. Augment/overwrite all_years with incidence data retrieved from the CDC server. Also augment/overwrite specific humidity with NASA data retrieved from the Predictive Science server.

Usage

1
2
get.cdc(all_years = NULL, mod_level = 2, fit_level = 3,
  mod_name = c(NAME_2 = "USA"), myDB = NULL)

Arguments

all_years

Data structure resulting from a call to get_disease_data

mod_level

An integer describing the spatial level of the model data.(Default value is 2) Levels: 0-Global, 1-Continent, 2-Country, 3-Region, 4-State, 5-County, 6-City. dice currently has data at levels 2-4 for CDC and GFT.

fit_level

An integer describing the spatial level of the fits used to construct the model-level profile/forecast (Default value is 3, must be >= mod_level).

mod_name

A named-vector of character strings that specify which region is to be modeled. In other words, mod_name specifies the country, region, state, etc. of the mod_level region. mod_name should be of the form mod_name = c(NAME_2='a', NAME_3='b',..., NAME_i='x' where i=mod_level and 'a', 'b',...,'x' are the appropriate level names. NAME_i='x' also accepts abbreviations. Choose appropriate names from diceData. For example, mod_name=c(NAME_2='United.States',NAME_3='Region4',NAME_4='North.Carolina') and mod_level=4 specifies North Carolina. To achieve the same result, use all abbreviations mod_name=c(NAME_2='USA',NAME_3='R4',NAME_4='NC') or a mix of names and abbreviations mod_name=c(NAME_2='USA',NAME_3='Region4',NAME_4='NC')

myDB

A connection to one of the databases. Generally opened using OpenCon.


predsci/DICE documentation built on Aug. 9, 2019, 9:41 a.m.