In this section we re-examine the two-way contingency tables studied in Independence Testing using the following log-linear regression model:
where all the xij are dummy variables coded to represent categorical variables. In addition, we also consider more complicated models that contain factors consisting of interactions between the same variables, as described in the sections listed below, and the yi are used to express the frequency of outcomes.
In particular, we will address the following example:
Example 1: Determine which of the log-linear models is the best fit for the data in Example 2 of Independence Testing.
As we will see there are the following types of log-linear models for two-way contingency tables:
Examples Workbook
Click here to download the Excel workbook with the examples described on this webpage.
Reference
Howell, D. C. (2010) Statistical methods for psychology (7th ed.). Wadsworth, Cengage Learning.
https://labs.la.utexas.edu/gilden/files/2016/05/Statistics-Text.pdf