Skip to content

General Loglinear Analysis

Fits a loglinear model of the cell counts of a contingency table, with any design you specify, cell covariates (e.g. linear-by-linear association scores) and cell structures (offsets or structural zeros).

  • Testing a specific model of association, such as independence or quasi-independence, in a two-way or multiway table.
  • Ordinal association models using a cell covariate (the product of row and column scores).
  • Rates: counts with an exposure (offset) given by the cell structure variable.
  • Poisson model: counts are independent Poisson variables. Multinomial model: the total sample size is fixed.
  • Expected counts not too small (as for chi-square tests).
  • Cells with a cell structure value of 0 are structural zeros and are left out.
  • Goodness-of-Fit Tests: likelihood-ratio and Pearson chi-square of the model against the saturated model; non-significant means adequate fit.
  • Cell Counts and Residuals: observed and expected counts with raw, standardized, adjusted and deviance residuals. Adjusted residuals beyond ±1.96 show cells the model misfits.
  • Parameter Estimates: log-scale effects relative to the last category (redundant parameters are zero); exponentiate them to get multiplicative effects on the expected count.

The independence model did not fit, G²(4) = 31.6, p < .001; the largest adjusted residual (3.9) was for smokers with high blood pressure.

Syntax: GENLOG smoking bp /MODEL=POISSON /PRINT=FREQ RESID ADJRESID ESTIM /DESIGN=smoking bp.


This page comes from OrcStat’s built-in help (the same text as in the app’s Help panel). To suggest a change, open an issue.