Skip to main content Accessibility help
×
Hostname: page-component-78c5997874-g7gxr Total loading time: 0 Render date: 2024-11-09T23:47:13.335Z Has data issue: false hasContentIssue false

A - A tutorial for running WinBUGS

Published online by Cambridge University Press:  05 June 2012

Michael A. McCarthy
Affiliation:
University of Melbourne
Get access

Summary

Before running WinBUGS, you will need to download it from the WinBUGS website. The latest version of WinBUGS is OpenBUGS, using open source software, which can be obtained at:

http://mathstat.helsinki.fi/openbugs/

Older versions of WinBUGS can be obtained from

http://www.mrc-bsu.cam.ac.uk/bugs/winbugs/contents.shtml

The older versions of WinBUGS require a key for full functionality, which requires that you register (for free). The newer OpenBUGS version does not require a key. Once you have downloaded and installed the software, you are ready to run WinBUGS. The following tutorial is based on the one provided with the program.

A summary of steps for running WinBUGS

  1. Select the term ‘model’ and then ‘check model’.

  2. Select the data and load.

  3. Compile the model.

  4. Set initial values for the Markov chain.

  5. Set variables to be sampled.

  6. Take samples.

  7. Check samples.

The steps in more detail

This tutorial steps through how to analyse a mean in WinBUGS, using the example of estimating the average tree diameter in a park (Box 1.8). It is based on the online User Manual in the WinBUGS program.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2007

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×