rescue {rube} | R Documentation |
Get all recorded MCMC results or just the last recorded iteration from a crashed WinBUGS run.
rescue(what=c("MCMC","startVals"), n=NA)
what |
What to return: a rube object of MCMC results or a list of starting values for a new run based on the last recoreded iteration. |
n |
If what=MCMC, n is the number of iterations to save, with NA indicating all. |
This function reads the files codaIndex.txt and coda#.txt created by setting bin= on a rube run. If WinBUGS crashed, these files contain the partial MCMC results saved so far. Use what=MCMC to get a rube object to examine what happened before the crash, or use what=startVals to restart the MCMC from the last recorded iteration. A restarted run will not be identical because the random number seed will be in a different state (even if you set it's starting value) and any parameters not mentioned in parameters.to.save will not be known.
Returns a new rube object if what=MCMC, otherwise a list of parameter values.
Howard J. Seltman <hseltman@stat.cmu.edu>
http://www.stat.cmu.edu/~hseltman/rube/
cat("Need a good example!\n")