apm
The software in this page combines posterior moments from two or more machine-readable moment output files, and provides conventional test statistics for the equality of these moments. A description of the methodology can be found in the BACC manual.
The following is a quick technical summary of apm.
In the fortran, c, and matlab versions there is a standard input file with input records as follows:
- Number of machine readable moment output files (=NF)
- Number of moments in each file(=NG)
- Name of file 1
- Name of file 2
- :
- :
- Name of file NF
The number of moments written in each machine-readable moment output file must be the same, and this number must be NG; otherwise the program terminates with an error message.
Languages
C routines
To run the program:
- Edit the control file (i.e., apmin) as specified above
- Compile and link
- enter the command apm < CONTROL-FILE > OUTPUT-FILE
Files needed to create executable:
Library Files needed to obtain executables:
- dcdflib
- ipmpar
- lapack
- blas
- tmglib
- libF77
- libI77
Fortran Routines
To run the program:
- Edit the control file described above
- Compile and link
- Enter the command apm < 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 apm
- Enter the command gauss -b apm
Files needed:
Mathematica
To run the program:
- Edit the top portion of apm.m
- Enter the command math < apm.m
Files needed to obtain the executable:
Matlab
To run the program:
- Edit the control file as noted above
- Edit the top portion of apm.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 < apm.m
Files needed to obtain the executable:
SPlus
To run the program:
- Edit the top portion of apm
- Enter the command splus BATCH apm out
Files needed to obtain the executable:
Samples
Sample input and output files for APM
- momsim(sample moment
machine readable file)
- momsim1(sample moment
machine readable file)
- apmin(sample input file for
apm)
- apmout(sample output file
for apm)