Support materials for
Bayesian Analysis with Stata

You can download the datasets, do-files, and user-written programs that were used in Bayesian Analysis with Stata from within Stata using the net command. To begin, create a new folder, for example,

      C:\bayesbook

However, you will likely create the folder within your documents folder.

Start Stata and type

      . net from http://www.stata-press.com/data/bas/
      . net get bayes

Once this package has downloaded, type

      . do bayes

to create the proper directories, download the datasets and do-files, and install the user-written packages needed to re-create the code in the book.

When the do-file has finished running, edit the file executables.txt in the Do-file Editor so that it points to the locations where you have installed WinBUGS and OpenBUGS, and then save the file.

You can then either copy this file to your PERSONAL folder or type

      . do setwinbugs

If you do not have an Internet connection from within Stata, you can download one of the following files:

bas.zip Zip format, 802K
bas.tar.Z Unix tar.Z format 1.1M

We suggest that you create a new directory and copy the materials there.