Writing BUGS Code In R
BUGS (Bayesian inference Using Gibbs Sampling) uses Markov chain Monte
Carlo (MCMC) methods to analyze statistical models. BUGS can be run
as a stand alone or from a number of other statistical packages.
More information
about BUGS can be found at the BUGS Project
homepage.
While there are many different ways to run BUGS, each assumes that the
BUGS command file has already been created. While this is not
difficult for some examples and models, it quickly becomes difficult
for larger examples and certain models. I have been running WinBUGS
(the Windows version of BUGS) from R and have created several
functions to write BUGS command files. The zip file below contains
the document WriteBUGS.pdf. This document explains
the other files in the zip file.