The CATMOD Procedure

Example 32.7 Repeated Measures, 4 Response Levels, 1 Population

(View the complete code for this example.)

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

Vision Symmetry
Test of Marginal Homogeneity

The CATMOD Procedure

Data Summary
ResponseRight*LeftResponse Levels16
Weight VariablecountPopulations1
Data SetVISIONTotal Frequency7477
Frequency Missing0Observations16

Population Profiles
SampleSample Size
17477

Response Profiles
ResponseRightLeft
111
212
313
414
521
622
723
824
931
1032
1133
1234
1341
1442
1543
1644

Response Frequencies
SampleResponse Number
1 2 3 4 5 6 7 8 9 10111213141516
115202661246623415124327811736217722053682179492

Response Functions and Design Matrix
SampleFunction
Number
Response
Function
Design Matrix
1 2 3 4 5 6
110.26428100100
 20.30173010010
 30.32847001001
 40.25505100-100
 50.297180100-10
 60.3352900100-1

Analysis of Variance
SourceDF Chi-SquarePr > ChiSq
Intercept378744.17<.0001
Side311.980.0075
Residual0..

Analysis of Weighted Least Squares Estimates
EffectParameterEstimate Standard
Error
Chi-
Square
Pr > ChiSq
Intercept10.25970.004683073.03<.0001
 20.29950.004644160.17<.0001
 30.33190.004834725.25<.0001
Side40.004610.001945.650.0174
 50.002270.002550.800.3726
 6-0.003410.002521.830.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) .