mlike
The software in this page provide numerical approximations to the marginal likelihood of a model, using the standard posterior simulator file as input. A description of the methodology can be found in the BACC manual.
In the fortran, c, and matlab versions there is a standard input file with input records as follows:
- Number of burn-in iterations; indicator of whether an mlike simulator file is to be written (1 if yes, 0 if no)
- Name of posterior simulator file to use as input
- name of mlike simulator file to be written, if 1 chosen above.
Languages
C routines
To run the program:
- Edit the control file (i.e., mlin) as specified above
- Edit the file pars.c
- Compile and link
- enter the command mlike < CONTROL-FILE > OUTPUT-FILE
Files needed to create executable:
Library Files needed to obtain executables:
- linpack
- ranlib
- dcdflib
- ipmpar
- lapack
- blas
- tmglib
- libF77
- libI77
Fortran Routines
To run the program:
- Edit the control file described above
- Edit the file pars.f; see mlike.pdf and comments in pars.f
- Compile and link
- Enter the command mlike < CONTROL-FILE > OUTPUT-FILE
Files needed to obtain the executable:
Libraries needed:
This routine uses IMSL. The user needs to link to IMSL or to the libraries described in LIBRARIES to generate executable.
Gauss
To run the program:
- Edit the top portion of mlike
- Edit the files lrange.g, repar0.g, and repar.g
- Enter the command gauss -b mlike
Files needed:
Mathematica
To run the program:
- Edit the top portion of mlike.m
- Edit the file pars.m; see mlike.pdf and comments in pars.m
- Enter the command math < mlike.m
Files needed to obtain the executable:
Matlab
To run the program:
- Edit the control file as noted above
- Edit the top portion of mlike.m to specify the name of the control file and the name of the output file.
- Edit the files lrange.m and repar.m
- Enter the command matlab < mlike.m
Files needed to obtain the executable:
SPlus
To run the program:
- Edit the top portion of mlike( including the functions lrange, repar and repar0)
- Enter the command splus BATCH mlike out
Files needed to obtain the executable:
Samples
Sample files for mlike can be found in the models page. There you will find sample files for each model.