object: An object of class epidata that can be the output of epidata or as.epidata.
tmin: The first time point at which the infection occurs, default value is one.
tmax: The last time point at which data is observed.
niter: Number of MCMC iterations.
sus.par.ini: Initial value(s) of the susceptibility parameter(s) (>0).
trans.par.ini: Initial value(s) of the transmissibility parameter(s) (>0).
beta.ini: Initial value(s) of the spatial parameter(s) (>0) or the network parameter(s) (>0) if contact network is used.
spark.ini: Initial value of the spark parameter (>=0).
Sformula: An object of class formula. See formula
Individual-level covariate information associated with susceptibility can be passed through this argument. An expression of the form ~ model is interpreted as a specification that the susceptibility function, ΩS(i) is modelled by a linear predictor specified symbolically by the model term. Such a model consists of a series of terms separated by + and - operators. If there is no susceptibility covariate information, Sformula is null.
Tformula: An object of class formula. See formula
Individual-level covariate information associated with transmissibility can be passed through this argument. An expression of the form ~ -1+model is interpreted as a specification that the transmissibility function, ΩT(j) is modelled by a linear predictor specified symbolically by the model terms without the incorporation of the intercept term. Such a model consists of a series of terms separated by + and - operators. If there is no transmissibility covariate information, Tformula is null.
pro.sus.var: Proposal density variance(s) for susceptibility parameter(s). If a zero value is assigned to the proposal variance of any parameter, the parameter is considered fixed to its sus.par.ini value.
pro.trans.var: Proposal density variance(s) for transmissibility parameter(s). If a zero value is assigned to the proposal variance of any parameter, the parameter is considered fixed to its sus.par.ini value.
pro.beta.var: Proposal density variance(s) for beta parameter(s). If a zero value is assigned to the proposal variance of any parameter, the parameter is considered fixed to its sus.par.ini value.
pro.spark.var: Proposal density variance for the spark parameter.
prior.sus.dist: Select the prior distribution(s) for the susceptibility parameter(s) with the choice of "halfnormal" for positive half normal distribution, "gamma" for gamma distribution and "uniform" for uniform distribution
prior.trans.dist: Select the prior distribution(s) for the transmissibility parameter(s) with the choice of "halfnormal" for positive half normal distribution, "gamma" for gamma distribution and "uniform" for uniform distribution
prior.beta.dist: Select the prior distribution(s) for the beta parameter(s) with the choice of "halfnormal" for half normal distribution, "gamma" for gamma distribution and "uniform" for uniform distribution
prior.spark.dist: Select the prior distribution for the spark parameter with the choice of "halfnormal" for half normal distribution, "gamma" for gamma distribution and "uniform" for uniform distribution
prior.sus.par: A vector (matrix) of the prior distribution parameters for updating the susceptibility parameter(s).
prior.trans.par: A vector (matrix) of the prior distribution parameters for updating the transmissibility parameter(s).
prior.beta.par: A vector (matrix) of the prior distribution parameters for updating the kernel parameter(s).
prior.spark.par: A vector of the prior distribution parameters for updating the spark parameter.
adapt: To enable the adaptive MCMC method in the MCMC function, default is FALSE.
acc.rate: To set an acceptance rate. This option will be ignored if adapt = FALSE. See MCMC for more details.
Returns
Returns an object of class epimcmc that contains:
type:: the compartmental framework model used in the analysis.
kernel.type:: the used kernel.type in the function (distance-based or network-based).
Estimates:: the MCMC output of the updated model parameters.
Loglikelihood:: the loglikelihood of the updated model parameters.
Fullsamples:: the MCMC output of all the model parameters (including fixed parameters).
n.sus.par:: the number of parameters in the susceptibility function.
n.trans.par:: the number of parameters in the transmissibility function.
n.ker.par:: the number of parameters in the kernel function.
Details
Independent Gaussian random walks are used as the Metropolis-Hastings MCMC proposal for all parameters. The epimcmc function depends on the MCMC function from the adaptMCMC package.
Rob Deardon, Xuan Fang, and Grace P. S. Kwong (2015). Statistical modelling of spatio-temporal infectious disease tranmission in Analyzing and Modeling Spatial and Temporal Dynamics of Infectious Diseases, (Ed: D. Chen, B. Moulin, J. Wu), John Wiley & Sons.. Chapter 11.