IMSL Fortran Stat Library
 
Chapter 5 Categorical and Discrete Data Analysis
Routines
Statistics in the Two-Way Contingency Table
Statistics in a 2 × 2 table, CTTWO 
Chi-squared analysis in a r × c table, CTCHI
Exact probabilities in a r × c table: total enumeration, CTPRB
Exact probabilities in a r × c table: network algorithm, CTEPR
Log-Linear Models
The iterative proportional fitting algorithm, PRPFT
Statistics for a given model, CTLLN
Parameter estimates for a given model, CTPAR
Partial association statistics, CTASC
Hierarchical stepping, CTSTP
Randomization Tests
Generalized Mantel-Haenszel statistics, CTRAN
Generalized Categorical Models
Generalized linear model, CTGLM
Weighted Least Squares Analysis
Analysis by weighted least squares, CTWLS