Journal of Statistical Software (Jan 2005)

R2WinBUGS: A Package for Running WinBUGS from R

  • Sibylle Sturtz,
  • Uwe Ligges,
  • Andrew Gelman

DOI
https://doi.org/10.18637/jss.v012.i03
Journal volume & issue
Vol. 12, no. 1
pp. 1 – 16

Abstract

Read online

The R2WinBUGS package provides convenient functions to call WinBUGS from R. It automatically writes the data and scripts in a format readable by WinBUGS for processing in batch mode, which is possible since version 1.4. After the WinBUGS process has finished, it is possible either to read the resulting data into R by the package itself--which gives a compact graphical summary of inference and convergence diagnostics--or to use the facilities of the coda package for further analyses of the output. Examples are given to demonstrate the usage of this package.