table of fictional data, say
religion by party at two different times. In each period there is
no association between religion and party (perfect independence)
but the distribution of religion and party change between the
periods:
| Religion | Period 1 | Period 2 | |||||
| Party A | Party B | Total | Party A | Party B | Total | ||
| I | 20 | 30 | 50 | 72 | 18 | 90 | |
| II | 20 | 30 | 50 | 8 | 2 | 10 | |
| Total | 40 | 60 | 100 | 80 | 20 | 100 | |
Period 1 OR:
Period 2 OR:
Religion by party marginal (observed):
| ||||||||||||||||||||
|
(expected):
| ||||||||||||||||||||
Pearson's
is 6.35 for 1 df (p = 0.012).
Observed OR is 2.19.
| Model | df | |
| R+P+T | 75.2215 | 4 |
| R+P+T+R*T | 34.5218 | 3 |
| R+P+T+P*T | 40.6997 | 3 |
| R+P+T+R*P | 68.9432 | 3 |
| R+P+T+R*T+P*T | .0000 | 2 |
![]() |
| ||||||||