Description Usage Arguments Value Examples
This function is generally called by get.DICE.data
.
For the current season, access the CDC server for most up-to-date data.
1 2 3 4 | get.cdc.data(mod_level = 2, fit_level = 3, mod_name = c(NAME_2 = "USA"),
start.year = 2016, start.week = 27, end.year = 2017, end.week = 26,
data_source = "cdc", all_years_flag = T, NOAA_clim = T,
DICE_db = "predsci")
|
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 mydata at levels 2-3 for CDC and 2-4 for 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, |
start.year |
An integer - start year of the flu season |
start.week |
An integer - starting CDC week of the flu season (default is 27) |
end.year |
An integer - end year of the flu season (default is end.year = start.year + 1) |
end.week |
An integer - ending CDC week of the flu season (default is 26) |
data_source |
A string specifying the type of mydata the user wants to model, currently we support ‘cdc’ and ‘gft’ (default is cdc) |
all_years_flag |
Logical that determines if all years of incidence are returned in addition to the specified time period. |
NOAA_clim |
Logical that determines if population-weighted precipitation and temperature (NOAA) are returned. NASA specific humidity is always returned. |
mydata A list ILI, SH, School, and Census mydata for both the model- and fit-level region(s).
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.