Description Usage Arguments Value Examples
View source: R/synthetic_fxns.R
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
1 2 | runSyntheticMulti(mydata = NULL, opt.list = NULL, run.list = NULL,
ireal = 1, iseed = NULL)
|
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. |
A list with the following arguments:
The best result of the MCMC procedure for the model synthetic data
Randomly selected results from the MCMC procedure of directly fitting the model synthetic data
The MCMC history of the direct fit to the model synthetic data
The best result for fitting the model synthetic data using the coupled synthetic fit regions
Randomly selected results from the MCMC procedure of fitting the model data using the coupled fit regions
The MCMC history of fitting the model data using the coupled fit regions
1 | runSyntheticMulti{mydata = mydata, opt.list = opt.list, run.list = run.list, ireal = 1}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.