runSyntheticMulti: Driver Routine Coupled Spatial Model - Synthetic Data

Description Usage Arguments Value Examples

View source: R/synthetic_fxns.R

Description

A spatailly coupled MCMC fit of synthetic data. The code first fits the model data directly and then fits it using a weighted coupled model of the regions. The data is synthetic (although it has the dataType 'cdc'). This synthetic example has been set up for the case of fit_level = 3 and mod_level = 2, that is fit the national data using the ten coupled HHS regions

Usage

1
2
runSyntheticMulti(mydata = NULL, opt.list = NULL, run.list = NULL,
  ireal = 1, iseed = NULL)

Arguments

mydata

A complex list with all the data for a single season. Everything except the number of cases and %ILI is from the 'cdc' dataType and will not be replaced. Only the number of cases and the %ILI will be replaced by syntethic profiles

opt.list

A Logical list with TRUE or FALSE values for all the parameters supported by DICE. The synthetic example has been set-up for model = 4

run.list

A list with parameters needed for the MCMC procedure

ireal

Integer - the MCMC chain number. Default is 1.

iseed

An integer used to set the random-number-generator seed. When not specified, the seed is generated randomly. Setting the seed to a known integer allows an MCMC chain to be reproducible.

Value

A list with the following arguments:

model_rtn

The best result of the MCMC procedure for the model synthetic data

model_profile

Randomly selected results from the MCMC procedure of directly fitting the model synthetic data

tab.model

The MCMC history of the direct fit to the model synthetic data

fit_rtn

The best result for fitting the model synthetic data using the coupled synthetic fit regions

fit_profile

Randomly selected results from the MCMC procedure of fitting the model data using the coupled fit regions

tab.fit

The MCMC history of fitting the model data using the coupled fit regions

Examples

1
runSyntheticMulti{mydata = mydata, opt.list = opt.list, run.list = run.list, ireal = 1}

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