![]() |
||||||
|
Running LinBUGS on Ada
10-Apr-2007 Introduction BUGS (Bayesian inference Using Gibbs Sampling) is a piece of computer software for the Bayesian analysis of complex statistical models using Markov chain Monte Carlo (MCMC) methods. LinBUGS is the Linux version of OpenBUGS. This document will describe how to run a basic LinBUGS job on Ada using the PBS job scheduler. Running LinBUGS with PBS The steps for running LinBUGS with PBS on Ada are described below: 1. Prepare the Data Directory Create a directory to store your input and output data files. In this example, the input and output files and the PBS script will all be stored in the same directory. This is not required but is presented this way here to simplify the instructions. Start by creating a working directory called bugs, for example:
Create a LinBUGS script file in this directory and call it bugs.script. Then create a LinBUGS model file called bugs.model, a file with the model's initial values called bugs.init, and a data file called bugs.data. The script file, bugs.script, might look something like the following:
In order to run LinBUGS, you need to initialize your environment using the module command as follows:
This command will set the appropriate environment variables that you need to run LinBUGS. 3. Prepare and Run the PBS Job Once the data files are in place, create a PBS batch job script called bugs.pbs in the same directory with the following contents:
Now run the PBS job from this working directory as follows:
ClassicBUGS Interface If you simply need to get to the ClassicBUGS command-line interface, run the following commands:
More Information For information about LinBUGS, please see the OpenBUGS website.
|
||||||
|