setup.vector.model.mcmc: Setup Parameters for MCMC Procedure - Model Dengue Data

Description Usage Arguments Value Examples

Description

Setup all the required parameters for the MCMC procedure on the model 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.

Usage

1
2
setup.vector.model.mcmc(mydata = NULL, opt.list = NULL, run.list = NULL,
  tps = NULL, par_names = NULL)

Arguments

mydata

- dataframe with all the data for this DICE run

opt.list

A Logical list with TRUE or FALSE values for all the parameters supported by DICE. These values are based on the model used for the basic reproduction number.

run.list

A list with parameters needed for the MCMC procedure

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

Value

A list with the following arguments

par_min

Minimum values for all the parameters supported by DICE

par_max

Maximum values for all the parameters supported by DICE

pardx

Step-size for MCMC for all the parameters supported by DICE

par

Initial values for all the parameters supported by DICE

logbase

Base for log values - currently code assumes base 10

logvec

Array of integers with 1, use log base, or 0 - do not

nparam

Integer-the total number of parameters recognized by the DICE code

nopt

Integer-the number of parameters that will be optimized

Examples

1
2
setup.model.mcmc{mydata = mydata,
run.list = run.list, opt.list = opt.list, tps = tps, par_names = par_names}

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