Skip to content

Methods · Bayesian statistics · Bayesian categorical data analysis

Bayesian Log-Linear Model for Contingency Tables

A Bayesian log-linear model describes the cell counts of a two- to four-way contingency table with main effects and interactions on the log scale, gives posterior distributions for the association parameters, and compares hierarchical models by their posterior probabilities.

베이즈 로그선형 모형은 두 개에서 네 개 범주형 변수의 분할표 칸 빈도를 로그 척도의 주효과와 상호작용으로 나타내 연관 모수의 사후분포를 구하고, 위계 모형들을 사후확률로 비교하는 방법입니다.

In my three-way table, which pairs of variables are associated once the third is taken into account, and how strong is the evidence for each interaction?

삼원 분할표에서 세 번째 변수를 고려했을 때 어떤 변수 쌍이 서로 연관되어 있는지, 각 상호작용의 근거가 얼마나 강한지 알고 싶습니다.

The Bayesian log-linear model scores every hierarchical model with the main effects, so you get the posterior probability of each model and of each interaction being present, together with posterior summaries of the interaction parameters and conditional odds ratios.

When to use Bayesian Log-Linear Model for Contingency Tables

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

A Bayesian log-linear analysis of the [value] x [value] x [value] table (N = [value]) gave the highest posterior probability ([value]) to the model [value]; the conditional odds ratio was [value], 95% CrI [[value], [value]].

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation).

    독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run Bayesian Log-Linear Model for Contingency Tables on Quorant

Data you need
a table (CSV or Excel) with predictor (feature) columns
Price
600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
Checking
Compared with independent computations
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 Q15041 · Reviewed 2026-10-25