Running WinBugs and OpenBugs from R (and also some applied regression stuff)

The software on this page gets updated. Refresh to get latest versions. Last update: 27 Jan 2008.

The bugs() function takes data and starting values as input, calls a Bugs model, summarizes inferences and convergence in a table and graph, and saves the simulations in arrays for easy access in R. Here's an example of print() and plot() as applied to a bugs fit.

Here's Appendix C from the second edition of Bayesian Data Analysis. This appendix has an extended example of the use of Bugs and R.

Setting up WinBUGS and OpenBUGS

Setting up R

Each time you run R

To run WinBugs from R

Downloading a text editor

Back to Andrew Gelman's homepage.