Programming the statistical procedures from SAS

Estimate statement in proc logistic for binary outcome

Reply
New User
Posts: 1

Estimate statement in proc logistic for binary outcome

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

 

SAS Employee
Posts: 385

Re: Estimate statement in proc logistic for binary outcome

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. 

Ask a Question
Discussion stats
  • 1 reply
  • 81 views
  • 0 likes
  • 2 in conversation