Displaying 1 result from an estimated 1 matches for "coda2bugs".
2007 Apr 29
0
Going from Coda Files to R2WinBUGS
..."". I am somewhat unclear as to why this is so.
The code for the method is as follows. Any thoughts would be greatly
appreciated, and if this works out, feel free to use it yourself!
Could be quite useful!
-Jarrett
#note, the test run was something along the lines of c.bugs<-coda2bugs
(n.burnin=1000)
coda2bugs<-function(codafile="jags.out", indexfile="jags.ind",
n.chains=1,
n.iter=NA, n.burnin=NA, n.thin=1, DIC=FALSE, file.rm=T, ...){
require(R2WinBUGS)
#first, split up the coda file for R2WinBUGS
codaSplit(codafile, indexfile)
#ge...