Skip to content

Model Selection Loglinear Analysis

Finds the simplest hierarchical loglinear model that explains the associations in a multiway frequency table (three or more categorical variables), by testing effects of each order and removing unnecessary interactions.

  • Exploring how three or more categorical variables are associated, without choosing a dependent variable.
  • Deciding whether a three-way interaction is needed (does the association between two variables depend on the third?).
  • Independent observations; each case falls in exactly one cell.
  • Expected counts large enough: all expected counts above 1 and no more than 20% below 5. Collapse categories otherwise.
  • Every variable has a numeric range of integer categories, e.g. a(1,3); cases outside it are excluded.
  • K-Way and Higher-Order Effects: whether all effects of order K and above can be dropped, and whether the K-way effects alone matter.
  • Partial Associations: the contribution of each effect beyond the others of the same order.
  • Step Summary: each backward-elimination step, the effect removed and the change in chi-square.
  • Goodness-of-Fit Tests: a non-significant likelihood-ratio chi-square means the final model fits the observed table.
  • Cell Counts and Residuals: standardized residuals beyond ±2 mark poorly fitted cells.

Backward elimination retained the generating class {gender × treatment, outcome}; the model fitted the data well, G²(5) = 3.82, p = .576, indicating that outcome was independent of both gender and treatment.

Syntax: HILOGLINEAR gender(1,2) treatment(1,3) outcome(1,2) /METHOD=BACKWARD /PRINT=FREQ RESID ASSOCIATION /DESIGN.


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.