The LOGSELECT Procedure
Example 11.4 Ordinal Logistic Regression
Consider a study of the effects of various cheese additives on taste. Researchers tested four cheese additives and obtained 52 response ratings for each additive. Each response was measured on a scale of nine categories ranging from strong dislike (1) to excellent taste (9). The data, given in McCullagh and Nelder (1989, p. 175) in the form of a two-way frequency table of additive by rating, are saved in the data table mycas.Cheese by using the following program. The variable y contains the response rating. The variable Additive specifies the cheese additive (1, 2, 3, or 4). The variable freq gives the frequency with which each additive received each rating.
data mycas.Cheese;
do Additive = 1 to 4;
do y = 1 to 9;
input freq @@;
output;
end;
end;
label y='Taste Rating';
datalines;
0 0 1 7 8 8 19 8 1
6 9 12 11 7 6 1 0 0
1 1 6 8 23 7 5 1 0
0 0 0 1 3 7 14 16 11
;
The response variable y is ordinally scaled. A cumulative logit model is used to investigate the effects of the cheese additives on taste. The following statements invoke PROC LOGSELECT to fit this model with y as the response variable and three indicator variables as explanatory variables, with the fourth additive as the reference level. With this parameterization, each Additive parameter compares an additive to the fourth additive.
proc logselect data=mycas.Cheese; freq freq; class Additive(ref='4') / param=ref ; model y=Additive; run;
Results from the logistic analysis are shown in Output 11.4.1 through Output 11.4.3.
The "Response Profile" table in Output 11.4.1 shows that the strong dislike (y=1) end of the rating scale is associated with lower OrderedValue values in the "Response Profile" table; hence the probability of disliking the additives is modeled.
Output 11.4.1: Proportional Odds Model Regression Analysis
Output 11.4.2: Proportional Odds Model Regression Analysis
The positive value (1.6128) for the parameter estimate for Additive=1 in Output 11.4.3 indicates a tendency toward the lower-numbered categories of the first cheese additive relative to the fourth. In other words, the fourth additive tastes better than the first additive. Similarly, the second and third additives are both less favorable than the fourth additive. The relative magnitudes of these slope estimates imply the preference ordering: fourth, first, third, second.
Output 11.4.3: Proportional Odds Model Regression Analysis
| Parameter Estimates | ||||||
|---|---|---|---|---|---|---|
| Parameter | y | DF | Estimate | Standard Error | Chi-Square | Pr > ChiSq |
| Intercept | 1 | 1 | -7.080166 | 0.564010 | 157.5844 | <.0001 |
| Intercept | 2 | 1 | -6.024980 | 0.476431 | 159.9230 | <.0001 |
| Intercept | 3 | 1 | -4.925416 | 0.425651 | 133.8992 | <.0001 |
| Intercept | 4 | 1 | -3.856801 | 0.388022 | 98.7968 | <.0001 |
| Intercept | 5 | 1 | -2.520552 | 0.345268 | 53.2940 | <.0001 |
| Intercept | 6 | 1 | -1.568538 | 0.312208 | 25.2408 | <.0001 |
| Intercept | 7 | 1 | -0.066875 | 0.273819 | 0.0596 | 0.8071 |
| Intercept | 8 | 1 | 1.492974 | 0.335696 | 19.7794 | <.0001 |
| Additive 1 | 1 | 1.612791 | 0.380544 | 17.9617 | <.0001 | |
| Additive 2 | 1 | 4.964640 | 0.476721 | 108.4546 | <.0001 | |
| Additive 3 | 1 | 3.322683 | 0.421830 | 62.0444 | <.0001 | |