Description Usage Arguments Value Examples
View source: R/prior_dengue_fxns.R
get.sql.da
Allows the User to augment the incidence time series beyond the nfit
data points
using either the historic NULL model da = 1
, or the most similar past season da=2
.
If da=0
, the data is not augmented.
1 2 3 |
nfit |
An integer - the number of data points use in the run |
mydata |
A dataframe with all the available data for this DICE run |
cases |
An array with the entire history of incidence information for one region/patch |
epi |
An array with the incidence information for one season and one region/patch |
corrMAT |
A 2D array with the Pearson corrletion values for all available disease seasons |
distMAT |
A 2D array with the Euler distance values for all available disease seasons |
deng.null |
the Historic NULL model - average monthly/weekly number of cases |
my_id |
The abbreviation of the state/region |
epi A list with the original and augmented mydata (if da=1,2) and the weight for the augmented data points
1 2 3 4 5 | get.sql.da(nfit = nfit, mydata = mydata, years = all_years_epi$years, cases = all_years_epi$model$epi,
epi = mydata$model$epi,corrMAT = corrMAT, distMAT = distMAT, deng.null=deng.null)
get.sql.da(nfit = nfit, mydata = mydata, years = all_years_epi$years, cases = all_years_epi$fit$epi[,iregion],
epi = mydata$fit$epi[,iregion],corrMAT = corrMAT, distMAT = distMAT, deng.null=deng.null)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.