login

Bayesian Analysis in Stata with WinBUGS

The Stata Journal Promoting communications on statistics and StataPublished 1 November 2006Open access
J. Thompson, Tom Palmer, Santiago G. Moreno
Citations43
SJR quartileQ1
SJR score1.65
SNIP1.90
View PDF

TL;DR

A set of ado-files are presented that enable data to be processed in Stata and then passed to WinBUGS for model fitting; finally, the results are read back into Stata for further processing.

Abstract

WinBUGS is a program for Bayesian model fitting by Gibbs sampling. WinBUGS has limited facilities for data handling, whereas Stata has no routines for Bayesian analysis; therefore, much can be gained by running Stata and Win-BUGS together. We present a set of ado-files that enable data to be processed in Stata and then passed to WinBUGS for model fitting; finally, the results are read back into Stata for further processing.

Keywords

Computer ScienceMathematics