graph
The software in this page creates an approximate posterior density of a function of interest, from a posterior simulation file. A description of the methodology and several parameters that must be set by the user can be found in the BACC manual.
This software produces a file of numerical values of the ordinate and approximate posterior pdf. This file is suitable as input to most plotting software. There is no plotting software proper in BACC.
In the fortran, c, and matlab versions there is a standard input file with three input records as follows:
- Ktype WWF Krange a1 a2 Nplot Nburn NF
- Posterior simulation file
- Output file (= input file to plot routine)
Languages
C routines
To run the program:
- Edit the control file (i.e., mlin) as specified above
- Compile and link
- enter the command graph < CONTROL-FILE > OUTPUT-FILE
Files needed to create executable:
Fortran Routines
To run the program:
- Edit the control file described above
- Compile and link
- Enter the command graph < 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 graph
- Enter the command gauss -b graph
Files needed:
Mathematica
To run the program:
- Edit the top portion of graph.m
- Enter the command math < graph.m
Files needed to obtain the executable:
Matlab
To run the program:
- Edit the control file as noted above
- Edit the top portion of graph.m .
- Enter the command matlab < graph.m
Files needed to obtain the executable:
SPlus
To run the program:
- Edit the top portion of graph
- Enter the command splus BATCH graph out
Files needed to obtain the executable:
Samples
Sample input and output files for Graph
- sim(sample
posterior simulation file)
- gin(sample
input file for graph)
- gout(sample
output file written by graph. Contains smoothed ordinates of function of interest)
- out(sample
output from running graph)