The CATMOD Procedure

Example 32.2 Mean Score Response Function, r=3 Responses

(View the complete code for this example.)

Four surgical operations for duodenal ulcers are compared in a clinical trial at four hospitals. The operations performed are as follows: Treatment = a, drainage and vagotomy; Treatment = b, 25% resection and vagotomy; Treatment = c, 50% resection and vagotomy; and Treatment = d, 75% resection. The response is severity of an undesirable complication called "dumping syndrome." The data in the following statements are from Grizzle, Starmer, and Koch (1969, pp. 489–504).

data operate;
   input Hospital Treatment $ Severity $ wt @@;
   datalines;
1 a none 23    1 a slight  7    1 a moderate 2
1 b none 23    1 b slight 10    1 b moderate 5
1 c none 20    1 c slight 13    1 c moderate 5
1 d none 24    1 d slight 10    1 d moderate 6
2 a none 18    2 a slight  6    2 a moderate 1
2 b none 18    2 b slight  6    2 b moderate 2
2 c none 13    2 c slight 13    2 c moderate 2
2 d none  9    2 d slight 15    2 d moderate 2
3 a none  8    3 a slight  6    3 a moderate 3
3 b none 12    3 b slight  4    3 b moderate 4
3 c none 11    3 c slight  6    3 c moderate 2
3 d none  7    3 d slight  7    3 d moderate 4
4 a none 12    4 a slight  9    4 a moderate 1
4 b none 15    4 b slight  3    4 b moderate 2
4 c none 14    4 c slight  8    4 c moderate 3
4 d none 13    4 d slight  6    4 d moderate 4
;

The response variable (Severity) is ordinally scaled with three levels, so assignment of scores is appropriate (0 = none, 0.5 = slight, 1 = moderate). For these scores, the response function yields the mean score. The following statements produce Output 32.2.1 through Output 32.2.3:

title 'Dumping Syndrome Data';
proc catmod data=operate order=data ;
   weight wt;
   response 0  0.5  1;
   model Severity=Treatment Hospital / freq oneway design;
   title2 'Main-Effects Model';
quit;

The ORDER= option is specified so that the levels of the response variable remain in the correct order. A main-effects model is fit. The ONEWAY option produces a table of the number of subjects within each variable level, and the FREQ option displays the frequency of each response within each sample (Output 32.2.1).

Output 32.2.1: Surgical Data: Analysis of Mean Scores

Dumping Syndrome Data
Main-Effects Model

The CATMOD Procedure

Data Summary
ResponseSeverityResponse Levels3
Weight VariablewtPopulations16
Data SetOPERATETotal Frequency417
Frequency Missing0Observations48

One-Way Frequencies
VariableValueFrequency
Severitynone240
 slight129
 moderate48
Treatmenta96
 b104
 c110
 d107
Hospital1148
 2105
 374
 490

Population Profiles
SampleTreatmentHospitalSample Size
1a132
2a225
3a317
4a422
5b138
6b226
7b320
8b420
9c138
10c228
11c319
12c425
13d140
14d226
15d318
16d423

Response Profiles
ResponseSeverity
1none
2slight
3moderate

Response Frequencies
SampleResponse Number
123
12372
21861
3863
41291
523105
61862
71244
81532
920135
1013132
111162
121483
1324106
149152
15774
161364


You can use the one-way frequencies and the response profiles from Output 32.2.1 to verify that the response levels are in the desired order (none, slight, moderate) so that the response scores (0, 0.5, 1.0) are applied appropriately. If the ORDER=DATA option had not been used, the levels would have been in a different order.

The analysis of variance table (Output 32.2.2) shows that the additive model fits (since the residual chi-square is not significant), that the Treatment effect is significant, and that the Hospital effect is not significant.

Output 32.2.2: Surgical Data: Analysis of Mean Scores

Response Functions and Design Matrix
SampleResponse
Function
Design Matrix
1 2 3 4 5 6 7
10.171881100100
20.160001100010
30.352941100001
40.250001100-1-1-1
50.263161010100
60.192311010010
70.300001010001
80.175001010-1-1-1
90.302631001100
100.303571001010
110.263161001001
120.280001001-1-1-1
130.275001-1-1-1100
140.365381-1-1-1010
150.416671-1-1-1001
160.304351-1-1-1-1-1-1

Analysis of Variance
SourceDF Chi-SquarePr > ChiSq
Intercept1248.77<.0001
Treatment38.900.0307
Hospital32.330.5065
Residual96.330.7069


The coefficients of Treatment in Output 32.2.3 show that the first two treatments (with negative coefficients) have lower mean scores than the last two treatments (the fourth coefficient, not shown, must be positive since the four coefficients must sum to zero). In other words, the less severe treatments (the first two) cause significantly less severe dumping syndrome complications.

Output 32.2.3: Surgical Data: Analysis of Mean Scores

Analysis of Weighted Least Squares Estimates
Parameter Estimate Standard
Error
Chi-
Square
Pr > ChiSq
Intercept 0.27240.0173248.77<.0001
Treatmenta-0.05520.02704.170.0411
 b-0.03650.02891.590.2073
 c0.02480.02800.780.3757
Hospital1-0.02040.02640.600.4388
 2-0.01780.02680.440.5055
 30.05310.03522.280.1312