☑ This topic is solved.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 06-05-2022 03:08 PM
(1716 views)
Hi, I have a predictor variable Color with 3 categories (0, 1, 2) and an outcome variable Sound_Level with 3 levels (low, medium, and high). I am trying to build a model that also accounts for a 3rd binary variable Size - (0, 1). Before adding that variable, I had been running an ordinal logistic regression with a proportional odds assumption, however, when I add the binary variable to the model the proportional odds assumption doesn't hold. I want to now run a generalized logit model, but I cannot figure out how. Here is the code I have tried, but it isn't working. How can I fix this?
proc logistic data=my_data descending;
class Color(ref = '0');
model Sound_level=Color Size link=GLOGIT;
run;
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The generalized logit model that treats the response as nominal (unordered) is fit when you add the LINK=GLOGIT option in the MODEL statement. However, you also have the option of fitting a nonproportional odds model that treats the response as ordinal (ordered) but relaxes the proportional odds assumption - either for all predictors or just some. This is described and illustrated in this note: http://support.sas.com/kb/22954
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The generalized logit model that treats the response as nominal (unordered) is fit when you add the LINK=GLOGIT option in the MODEL statement. However, you also have the option of fitting a nonproportional odds model that treats the response as ordinal (ordered) but relaxes the proportional odds assumption - either for all predictors or just some. This is described and illustrated in this note: http://support.sas.com/kb/22954
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Great, thank you! Is that the better model to fit then?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
It is if you want to make use of the ordered nature of the response. But with the ordinal model, you must be certain that the response levels appear in logical ascending or descending order in the Response Profile table. Also, most people are more used to the 0,1 coding of categorical predictor variables. To do that, specify the PARAM=GLM option in the CLASS statement. You might also want to specify the reference level for your SIZE variable.