This function reads Markov Chain Monte Carlo output in the
CODA format produced by jags and returns an object of class
mcmc.list
for further output analysis using the
coda package.
jags2bugs(path=getwd(), parameters.to.save,
n.chains=3, n.iter=2000, n.burnin=1000, n.thin=2,
DIC=TRUE)
sets working directory during execution of this function; This should be the directory where CODA files are.
character vector of the names of the parameters to save which should be monitored.
number of Markov chains (default: 3)
number of total iterations per chain (including burn in; default: 2000)
length of burn in, i.e. number of iterations to
discard at the beginning. Default is n.iter/2
, that is,
discarding the first half of the simulations.
thinning rate, default is 2
logical; if TRUE
(default), compute deviance, pD,
and DIC. The rule pD=var(deviance) / 2
is used.
Yu-Sung Su suyusung@tsinghua.edu.cn, Masanao Yajima yajima@stat.columbia.edu