SpatialEpi (version 1.1)

MCMC: MCMC Wrapper Function

Description

Internal wrapper function for C call to MCMC method.

Usage

MCMC(n.sim, overlap, cluster.coords, J, values, lambda, theta.init)

Arguments

n.sim
number of MCMC simulations
overlap
output of create.geo.objects: a list with two elements: 1. presence which lists for each areas all the single zones it is present in and 2. cluster_list for each single
cluster.coords
output of create.geo.objects: n.zones x 2 matrix of the centering and radial area of each single zone
J
Maximum number of clusters/anti-clusters to consider
values
values associated with each single zone to use in Metropolis-Hastings ratio
lambda
lambda from definition of prior on single zones
theta.init
initial configuration

Value

  • sampleMCMC chain
  • move_tracetrace of proposed move at each iteration
  • accpt_tracetrace of acceptance at each iteration

See Also

process.MCMC.chain