get.sql.da: Data Augmentation for Mechanistic Model

Description Usage Arguments Value Examples

View source: R/prior_dengue_fxns.R

Description

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.

Usage

1
2
3
get.sql.da(nfit = NULL, mydata = NULL, years = NULL, cases = NULL,
  epi = NULL, corrMAT = NULL, distMAT = null, deng.null = NULL,
  my_id = NULL)

Arguments

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

Value

epi A list with the original and augmented mydata (if da=1,2) and the weight for the augmented data points

Examples

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)

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