Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

read.openbugs

Read CODA output files produced by OpenBUGS


Description

read.openbugs reads Markov Chain Monte Carlo output in the CODA format produced by OpenBUGS.

This is a convenience wrapper around the function read.coda which allows you to read all the data output by OpenBUGS by specifying only the file stem.

Usage

read.openbugs(stem="", start, end, thin, quiet=FALSE)

Arguments

stem

Character string giving the stem for the output files. OpenBUGS produces files with names "<stem>CODAindex.txt", "<stem>CODAchain1.txt", "<stem>CODAchain2.txt", ...

start

First iteration of chain

end

Last iteration of chain

thin

Thinning interval for chain

quiet

Logical flag. If true, a progress summary will be printed

Value

An object of class mcmc.list containing output from all chains.

Author(s)

Martyn Plummer

References

Spiegelhalter DJ, Thomas A, Best NG and Lunn D (2004). WinBUGS User Manual, Version 2.0, June 2004, MRC Biostatistics Unit, Cambridge.

See Also


coda

Output Analysis and Diagnostics for MCMC

v0.19-4
GPL (>= 2)
Authors
Martyn Plummer [aut, cre, trl], Nicky Best [aut], Kate Cowles [aut], Karen Vines [aut], Deepayan Sarkar [aut], Douglas Bates [aut], Russell Almond [aut], Arni Magnusson [aut]
Initial release
2020-09-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.