BaM (Bayesian Modeling) is a framework aimed at estimating a model using a bayesian approach and using it for prediction, with a particular focus on uncertainty quantification.
The current code is a computational engine and mostly aims at generating MCMC samples from the posterior distribution associated with the model and the data, and to use these MCMC samples to make predictions. It is implemented as an executable file controlled by a set of configuration text files. BaM is still under active development and the documentation of configuration files is hence incomplete, but useful information may be found here. It is also possible to use BaM with the R package RBaM.
A recent BaM executable for your system (Windows or Linux - MacOS not available yet) can be downloaded here.
Alternatively, the executable can be recompiled from sources using the provided makefile or Code::Blocks project. Files from the following projects are needed for this purpose:
Here is the procedure to compile BaM using the makefile:
- Download-and-unzip or clone BaM, BMSL and miniDMSL into the same folder. You should end up with three folders named BaM, BMSL and miniDMSL sitting alongside (rename them if needed- warning the names are case-sensitive).
- Open a terminal and move to the makefile directory by typing:
cd /cloning-folder/BaM/makefile, replacingcloning-folderby the folder where you downloaded/cloned the three projects of step 1. - type
makein the terminal.
You should see many messages and after a few minutes at most the executable file BaM should be created into the makefile directory.
Developper tools such as the make utility and the gfortran compiler must be installed on your machine for this procedure to work. This should be natively the case on most computers, but if not you can install the GNU Compiler Collection.
