Collect the MCMC samples from BUGS.
getBugsOutput(n.chains, workingDir, OpenBugs = TRUE)The number of chains BUGS had run.
A character string specifying the name of the directory where the output files are saved.
If TRUE, OpenBugs is used.
A list of matrix whose columns and rows contain the monitored parameters and the MCMC iterations, respectively.
This function assumes that under workingDir, there is a coda
index file codaIndex.txt, and the coda output for
n.chains chains are named as coda1.txt, coda2.txt, ...