I have run a looong computation in WinBUGS (million iterations) using the R2WinBUGS package from within R:
bugs.object <- bugs(...)
but the R crashed. How do I reload the bugs.object into R again without running winbugs again? I tried this (I have 3 chains):
out <- read.bugs(paste("coda", 1:3, ".txt", sep = ""))
but the out
data structure is completely diferent from the bugs object (as it is, it is unusable). I tried to convert it with as.bugs.array
:
bugs.object <- as.bugs.array(out, model.file = "ttest.txt", n.iter = 1000000, n.burnin = 300000, n.thin = 2, program = "WinBUGS")
but it doesn't work. Please help. Thanks.