WinBUGS from Stata

Introduction

The package winbugsfromstata is available from this webpage. The package contains programs to run WinBUGS from within Stata.

Installation

THE STATA DOES NOT RECOGNISE THE SWWW2 PROTOCOL USED BY THIS WEBSITE, HOWEVER THE STATA net COMMAND CAN BE USED IF THE s IS DROPPED FROM THE WEB ADDRESS.

 

Use the following commands to install the package from within a web-aware Stata (the web address below is long and so is displayed over two lines but must be entered on one line in Stata):

net from http://www2.le.ac.uk/departments/health-sciences/research/ships/genetic-epidemiology/software-programs-examples-datasets-and-downloads/winbugsfromstata

net describe winbugsfromstata
net install winbugsfromstata

Then to read the help files type:

help winbugs

Stata Journal Article

A Stata Journal article describing the use of the commands was published in 2006.

   Bayesian analysis in Stata using WinBUGS

   Thompson JR, Palmer TM, Moreno, S

   The Stata Journal 2006;6(4):530-549

A draft version of that article is available for download.

Stata Journal Article

Manual

A guide to the programs, presented in the style of the Stata Reference Manuals, is available for download.

Manual

Examples

Two worked examples demonstrating the use of the programs are provided below. They re-analyse examples provided by WinBUGS.

Oxford example

Blocker example

Ado-files and help files for manual installation

The ado and help files are available for download if you do not want to use the net command. Save the files on the adopath.

wbfiles

Contact details

If you have any questions about the programs please read the help files, manual and worked examples first.

If you can't find an answer to your question or if you find any errors in the programs please contact Professor John Thompson (john.thompson@le.ac.uk). Please begin the subject line of an email with winbugsfromstata.

Links

Darren Greenwood's bugsutils package is available from http://www.personal.leeds.ac.uk/~hssdg/Stata/.

Notes

Use the following Stata command to check you have the latest version:
adoupdate winbugsfromstata

Share this page: