BookmarkSubscribeRSS Feed
Veen
Calcite | Level 5

Hi,

 

I am calculating the odds ratio of different treatment groups using proc logistic. I tried to do it in two ways: 1. by using estimate statement 2. by not using estimate statement. By just giving the odds option  (code below). But I get different results for each option. Can someone tell me the difference between using an estimate statement and not using it in proc logistic?

 

proc logistic data = final;
      class cohort (ref=LAST) tymcdpip / param=ref ;
      model anl01fl(event='Y') = cohort tymcdpip / expb;
   by segorder;
      ods output OddsRatios = odds
                 ParameterEstimates = pval;
    run ;

 

Where, cohort = treatment group , tymcdpip = covariate, segorder = variable which defines different treatment comparisons as a segment, and anl01fl = responder variable

 

1 REPLY 1
StatDave
SAS Super FREQ

For effects like COHORT which only appear as main effects in the model, the odds ratio estimate is provided automatically and the label in the provided table indicates its interpretation (which levels are compared). For any variable in the model, you can also request odds ratio estimates using the ODDSRATIO statement. This is far easier than using the ESTIMATE statement since you do not have to determine the correct linear combination of parameter estimates to yield the odds ratio estimate. Note that, in general, the EXPB option does not necessarily provide odds ratio estimates since, depending on the model parameterization, the odds ratio might not be computed simply by exponentiating a parameter estimate. There is no "odds" option. If you are referring to the ODS OUTPUT statement you show, that simply saves a displayed table in a data set. 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1192 views
  • 0 likes
  • 2 in conversation