Unfortunately, the ODDSRATIO statement did not honor the REF= level set by the CLASS statement until the current (SAS 9.3 TS1M2) release. Prior to that release, you canuse the LSMEANS statement with the DIFF=CONTROL, EXP, and CL options instead of the ODDSRATIO statement. The LSMEANS statement requires that you also use the PARAM=GLM option in the CLASS statement. For example, if variable A has values 1 and 2 and you want the odds ratio with the odds for level 1 in the denominator, the following LSMEANS statement provides the odds ratio estimate and confidence limits in the "Exponentiated" columns of the "Differences of A Least Squares Means" table. proc logistic; class a b / param=glm; model y=a b; lsmeans a / diff=control('2') exp cl; run;
... View more