Description Usage Arguments Value Examples
Setup all the required parameters for the MCMC procedure on the fit data. These include: The min/max and step size values for all the parameters, the initial values for all the parameters, a vector with the list of parameters that will be optimized, the total number of parameters and the number of parameters that will be optimized. The code also allocates an array, tab, where the history of the MCMC chain is recorded.
1 2 | setup.fit.mcmc(mydata = NULL, run.list = NULL, opt.list = NULL,
tps = NULL, par_names = par_names)
|
mydata |
- dataframe with all the data for this DICE run |
run.list |
A list with parameters needed for the MCMC procedure |
opt.list |
A Logical list with TRUE or FALSE values for all the parameters and find the proper values needed for this prior. supported by DICE. These values are based on the model used for the basic reproduction number. |
tps |
A numeric array of days for the disease season - the day numbers are consistent with the weeks/months |
par_names |
- - An array with the all parameters ordered as required by DICE |
A list with the following arguments:
Minimum values for all the parameters supported by DICE for each region
Maximum values for all the parameters supported by DICE for each region
Step-size for MCMC for all the parameters supported by DICE for each region
Initial values for all the parameters for each region
Base for log values - currently code assumes base 10
Integer-the number of parameters that will be optimized
A 2D numeric array with nlines and (nparam+1) columns used to store the MCMC history of all the parameters and the likelihood
1 2 | setup.fit.mcmc{mydata = mydata,
run.list = run.list, opt.list = opt.list, tps = tps, par_names = par_names}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.