jags2bugs | R Documentation |
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)
path |
sets working directory during execution of this function; This should be the directory where CODA files are. |
parameters.to.save |
character vector of the names of the parameters to save which should be monitored. |
n.chains |
number of Markov chains (default: 3) |
n.iter |
number of total iterations per chain (including burn in; default: 2000) |
n.burnin |
length of burn in, i.e. number of iterations to
discard at the beginning. Default is |
n.thin |
thinning rate, default is 2 |
DIC |
logical; if |
Yu-Sung Su suyusung@tsinghua.edu.cn, Masanao Yajima yajima@stat.columbia.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.