This example illustrates a repeated measures analysis in which there are more than two levels of response. In this study,
from Grizzle, Starmer, and Koch (1969, p. 493), 7,477 women aged 30–39 are tested for vision in both right and left eyes. Since there are four response levels
for each dependent variable, the RESPONSE
statement computes three marginal probabilities for each dependent variable, resulting in six response functions for analysis.
Since the model contains a repeated measurement factor (Side
) with two levels (Right
, Left
), PROC CATMOD groups the functions into sets of three (=6/2). Therefore, the Side
effect has three degrees of freedom (one for each marginal probability), and it is the appropriate test of marginal homogeneity.
The following statements produce Output 32.7.1:
title 'Vision Symmetry'; data vision; input Right Left count @@; datalines; 1 1 1520 1 2 266 1 3 124 1 4 66 2 1 234 2 2 1512 2 3 432 2 4 78 3 1 117 3 2 362 3 3 1772 3 4 205 4 1 36 4 2 82 4 3 179 4 4 492 ;
proc catmod data=vision; weight count; response marginals; model Right*Left=_response_ / freq design; repeated Side 2; title2 'Test of Marginal Homogeneity'; quit;
Output 32.7.1: Vision Study: Analysis of Marginal Homogeneity
Analysis of Weighted Least Squares Estimates | |||||
---|---|---|---|---|---|
Effect | Parameter | Estimate | Standard Error |
Chi- Square |
Pr > ChiSq |
Intercept | 1 | 0.2597 | 0.00468 | 3073.03 | <.0001 |
2 | 0.2995 | 0.00464 | 4160.17 | <.0001 | |
3 | 0.3319 | 0.00483 | 4725.25 | <.0001 | |
Side | 4 | 0.00461 | 0.00194 | 5.65 | 0.0174 |
5 | 0.00227 | 0.00255 | 0.80 | 0.3726 | |
6 | -0.00341 | 0.00252 | 1.83 | 0.1757 |
The analysis of variance table in Output 32.7.1 shows that the Side
effect is significant, so there is not marginal homogeneity between left-eye vision and right-eye vision. In other words,
the distribution of the quality of right-eye vision differs significantly from the distribution of the quality of left-eye
vision in the same subjects. The test of the Side
effect is equivalent to Bhapkar’s test (Agresti 1990) .