Logistic Regression Models: Reversed odds ratios in SAS Proc Logistic–Use ‘Descending’

by Karen Grace-Martin

If you’ve ever been puzzled by odds ratios in a logistic regression that seem backward, stop banging your head on the desk.

Odds are (pun intended) you ran your analysis in SAS Proc Logistic.

Proc logistic has a strange (I couldn’t say odd again) little default.  If your dependent variable Y is coded 0 and 1, SAS will model the probability of Y=0.  Most of us are trying to model the probability that Y=1.  So, yes, your results ARE backward, but only because SAS is testing a hypothesis opposite yours.

Luckily, SAS made the solution easy.  Simply add the ‘Descending’ option right in the proc logisitic command line.  For example:

MODEL Y = X1 X2;

All of your parameter estimates (B) will reverse signs, although p-values will not be affected.
Bookmark and Share


{ 1 comment… read it below or add one }

Jim Hess

In some fields it has been common to code Yes/No responses as Yes=1 No=2.


Leave a Comment

Please note that, due to the large number of comments submitted, any comments on problems related to a personal study/project will not be answered. We suggest joining Statistically Speaking, where you have access to a private forum and more resources 24/7.

Previous post:

Next post: