Log-linear model
How are several categorical characteristics related when there are more than two? A log-linear model describes the logarithm of the expected cell frequencies as a sum of main effects and interactions. Leaving out an interaction corresponds to independence.
Example: Table 30, 20 / 10, 40 (n = 100): the main-effects-only model expects 20, 30 / 20, 30. Likelihood-ratio χ² = 17.26, df = 1, p < 0.001; odds ratio of the table 6.0.
Caution: The model describes associations among all characteristics on equal footing; no characteristic is treated as the outcome. It works with counts, not percentages.