Methods · Hypothesis testing · Categorical data analysis

Log-Linear Models for Contingency Tables

Log-linear models describe the cell counts of a multiway contingency table with a Poisson model on the log scale, where interaction terms represent associations among the categorical variables.

로그선형 모형은 다원 분할표의 칸 빈도를 로그 척도의 포아송 모형으로 설명하며, 상호작용 항으로 범주형 변수 사이의 연관을 나타내는 방법입니다.

I have a three-way table of counts; which pairs of variables are associated once the third is taken into account?

세 범주형 변수로 만든 빈도표가 있는데, 셋째 변수를 고려해도 어떤 두 변수가 연관되어 있는지 알고 싶어요.

A log-linear model fits the expected count of each cell as a product of main effects and interaction terms, and its deviance G² measures how far the fitted counts are from the observed ones. Dropping one interaction at a time and comparing deviances tests that association, including conditional independence of two variables given the others.

When to use Log-Linear Models for Contingency Tables

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

A hierarchical log-linear model [model terms] fit the data well, G²([df], N = [value]) = [value], p = [value]. Removing the [A]×[B] association worsened fit, ΔG²([df]) = [value], p = [value].

Related methods

Run Log-Linear Models for Contingency Tables on Quorant

Data you need
a table (CSV or Excel) with predictor (feature) columns and a weight column
Price
400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
Checking
Checked by property tests in every deployment
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q11066 · Reviewed 2026-10-25