Description Usage Arguments Value Examples
This function retrieves incidence and climate data from the MySQL database. It is generally called by get.DICE.data
.
1 2 3 4 |
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, |
years |
An integer vector - all years to be included. If a value of "all" is passed, the function returns all available dates. |
disease |
A character string - for example 'flu' or 'dengue' |
sql_data_source |
An integer - designates which mydata source is to be used. |
daily_clim |
Logic value determining if daily climate data is retrieved. (Note: climate data averaged to the incidence-cadence is always returned.) |
mod_sum |
Logic value indicating if model data will be aggregated from fit data. If so, get_disease_data will not attempt to return model-level data. |
out A list with a lookup table 'attr' and then climate data organized by cadence, spatial patch, and then data_source.
1 2 | require(DICE)
out = get_disease_data(mod_level = 2, fit_level = 4, mod_name = c(NAME_2='BR'), years="all", disease="dengue", sql_data_source=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.