[R] R, Coda, and OpenBUGS
Bill Halteman
halteman at math.umemat.maine.edu
Wed Oct 7 01:29:38 CEST 2009
Hi All,
I am trying to figure out how to use R-Coda with the output from
OpenBugs. I have installed and loaded the packages BRugs and R2WinBUGS.
I have successfully run a simple Bayes model in WinBUGS using R2WinBUGS'
"bugs" and have used "read.bugs" to build the coda object. I can
successfully switch to OpenBugs and run the same model and get the basic
summary back. However, I cannot build the coda object. From what I
have read "read.openbugs" should do the trick. However, I have
discovered the current version of OpenBUGS (v 3.03) doesn't write any
output files in spite of setting codaPkg=TRUE in the "bugs" call.
"Str(openbugs.object)" reveals a large collection of elements, one of
which is an array that contains the MCMC chains. Is there a function to
build the coda object?
Thanks in advance for any suggestions,
Bill Halteman
More information about the R-help
mailing list