Auxiliary function that can be used to set prior distributions and parameter
values that control the MCMC algorithm used by epinet to produce posterior
samples. This function is only used in conjunction with the epinet
function.
The type of prior distribution (default is gamma / inverse gamma) can be specified for all epidemic parameters (i.e., all parameters except the eta network parameters)
using priordists or for each parameter individually. Either uniform or gamma / inverse gamma priors can be chosen. (The two theta
parameters use inverse gamma prior distributions, while the other epidemic parameters use gamma priors.)
The parameters of the epidemic parameter prior distributions are given as vectors of (two) hyper-parameters. If the uniform
prior is being used for a parameter, then the hyper-parameters are the lower and upper limits of
the distribution. If the gamma distribution is being used with parameters \(c\) and \(d\), then the prior mean
is \(c \cdot d\) and the prior variance is \(c \cdot d^2\). If the inverse gamma distribution is being used with parameters
\(c\) and \(d\), then the prior mean is \(\frac{d}{c-1}\) and the prior variance is
\(\frac{d^2}{(c-1)^2 \cdot (c-2)}\).
For the network parameters (the eta parameters), the only prior assumption currently implemented is a set of independent normal distributions.
etaprior contains the hyper-parameters for the prior distributions of the eta parameters. This is a vector of \(2k\) values,
giving the mean and standard deviation of each distribution (i.e., the first two entries are the mean and
standard deviation of the prior distribution for the first eta parameter, the next two entries are the mean and
standard deviation of the prior distribution for the second eta parameter, etc.)
The default prior distribution for the parent of each node is uniform on all of the other nodes. To specify a
non-uniform distribution, use column 2 of epidata and set parentpriormult to an integer multiplier greater than 1.