rescue {rube}R Documentation

Rescue last recorded results from a WinBUGS crash.

Description

Get all recorded MCMC results or just the last recorded iteration from a crashed WinBUGS run.

Usage

rescue(what=c("MCMC","startVals"), n=NA)

Arguments

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.

Details

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.

Value

Returns a new rube object if what=MCMC, otherwise a list of parameter values.

Author(s)

Howard J. Seltman <hseltman@stat.cmu.edu>

References

http://www.stat.cmu.edu/~hseltman/rube/

See Also

rube

Examples

cat("Need a good example!\n")

[Package rube version 0.3-11 Index]