Support materials for
Bayesian Analysis with Stata

You can download the datasets, do-files, and community-contributed 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 community-contributed 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.

Datasets used in this book and available here are provided on an 'as is' and 'where is' basis and without warranty of any type or kind. StataCorp hereby expressly disclaims and excludes all warranties and conditions, whether statutory, express, implied, or otherwise, with respect to the datasets, including, but not limited to, any implied warranty of merchantability, fitness for a particular purpose, and noninfringement of third-party rights.