Programming the statistical procedures from SAS

Odds Ratios from ordinal LR using surveylogistic

Reply
New Contributor RDD
New Contributor
Posts: 2

Odds Ratios from ordinal LR using surveylogistic

I am running an ordinal logisic regression analysis where the outcome/idependent variable (Q169_2re) has three levels (1=little exposure, 2=moderate, 3=extreme). I am using the following code and I am unable to get odds ratio estmates for each level. I tried a contrast statement but it didn't work (I thought those were only for levels of depenent variables, but I could be wrong). Can someone point me in the right direction?

 

proc SURVEYLOGISTIC data=HRBM order=formatted;

weight weight1;

class Q169_2re (ref="1 little exposure") risk(ref="no risk")/PARAM=ordinal;

model Q169_2re=risk/CLODDS;

run;

 

 

SAS Employee
Posts: 187

Re: Odds Ratios from ordinal LR using surveylogistic

I assume that you specified PARAM=ORDINAL because your response is ordinal.  You never need to specify the response variable in the CLASS statement, and I recommend that you don't.  Because you have PARAM=ORDINAL specified as a global option in the CLASS statement, it applies not only to the response but also your predictor.  That's why you don't get odds ratios by default (though you could probably add an ODDSRATIO statement to get it).  So, the following would be better code.  Note that if you need to model the probabilities of higher values of the response, use the DESCENDING response variable option as shown.

 

proc SURVEYLOGISTIC data=HRBM order=formatted;

weight weight1;

class risk(ref="no risk");

model Q169_2re(descending)=risk/CLODDS;

run;

New Contributor RDD
New Contributor
Posts: 2

Re: Odds Ratios from ordinal LR using surveylogistic

Thank you


Ask a Question
Discussion stats
  • 2 replies
  • 76 views
  • 0 likes
  • 2 in conversation