WinBUGS from Stata
The package winbugsfromstata is available from this webpage. The package contains programs to run WinBUGS from within Stata.
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 describe winbugsfromstata
net install winbugsfromstata
Then to read the help files type:
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.
A guide to the programs, presented in the style of the Stata Reference Manuals, is available for download.
Two worked examples demonstrating the use of the programs are provided below. They re-analyse examples provided by WinBUGS.
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.
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 (email@example.com). Please begin the subject line of an email with winbugsfromstata.
Darren Greenwood's bugsutils package is available from http://www.personal.leeds.ac.uk/~hssdg/Stata/.
Use the following Stata command to check you have the latest version: