loglineaarne
Loglineaarne, or log-linear in English, is a statistical modeling approach used for analyzing counts in contingency tables. It describes how the logarithm of the expected cell frequencies can be written as a linear combination of parameters corresponding to main effects and interactions among categorical variables. The method is widely applied in fields such as sociology, epidemiology, marketing, and data science to study associations and dependencies among multiple categorical factors.
Mathematical form and interpretation: Consider a multi-way contingency table with cell counts N_i1...ik and expected counts
Estimation and uses: Parameters are typically estimated by maximum likelihood. The iterative proportional fitting (IPF) algorithm
Relation to related concepts: Log-linear models are related to, but distinct from, logistic regression. While log-linear