A log-linear model makes the logarithm of a positive expectation linear in model parameters. For independent cell counts with a Poisson distribution in a contingency table, write and . This is a Poisson regression with log link; finite linear predictors give strictly positive fitted cell expectations.
For a two-way table, the additive model
implies . Conditional on the total count, the cell counts have a multinomial distribution whose cell probabilities factor into row and column probabilities; this is independence of the two categorical classifications. For example, the cell-mean table has common column ratio two and odds ratio .
Adding interaction terms to the linear predictor permits association. In a table the association is measured by
It vanishes in the additive model. Hence additive main effects describe one particular log-linear model; log-linear models also include interactions and more general design matrices. Independent Poisson sampling and multinomial sampling conditional on the total use different sampling schemes, while producing this same independence structure for the normalized cell probabilities.
Independent Poisson distributions with a separate nuisance intercept in every stratum become multinomial distributions after conditioning on their totals. Profiling the intercept gives . Substitution produces the same parameter-dependent log-likelihood as the conditional multinomial model. Both approaches fit . This exact equivalence differs from approximating a single binomial event count by a rare-event Poisson distribution.
For independent Poisson cell counts in stratified two-by-two contingency tables, the model allows both margins to vary by stratum but excludes within-stratum association. Its fitted means are the displayed products of margins, because the Poisson regression score equations match those margins. Every stratum's odds ratio is one. With positive nondegenerate margins, strata give parameters and residual degrees of freedom. A common association adds one parameter; stratum-specific associations saturate the tables.
For and a centered normal distribution prior, this conditional log-posterior has second derivative . It is strictly concave but does not belong to a normal distribution or gamma distribution family. A random-walk Metropolis algorithm, or a locally scaled proposal around its unique mode with the full proposal correction, can update it. Gaussian conjugacy is unavailable because the Poisson distribution likelihood contains an exponential rate.
For cell counts in a two-way contingency table, the independence model is
The absence of an interaction makes factor as a row effect times a column effect. Its maximum-likelihood fitted values are
A saturated log-linear model has enough parameters to reproduce every observed contingency-table cell count and therefore has zero residual deviance.
For treatment groups Control, LD, and SD and binary outcomes, equal LD and SD efficacy can be imposed while retaining separate group totals by using separate treatment main effects but one shared treated-versus-control interaction with outcome. Comparing this five-parameter model with the saturated six-parameter model gives a one-degree-of-freedom analysis of deviance for nested generalized linear models.

Articles by others on the same topic (0)

There are currently no matching articles.