Programming the statistical procedures from SAS

Output odds ratios from conditional logistic regression

Accepted Solution Solved
Reply
Regular Contributor
Posts: 163
Accepted Solution

Output odds ratios from conditional logistic regression

Hi

I am trying to get the betas and the odds ratio from a conditional logistic regression as follows:

ods output CLOddsWald=log1 Parameterestimates=Est1;

proc logistic data=test ;

strata crb;

class race sex;

model case(event='1')= race sex age /  rl;

by category;

run;


For some reason the proc logistic is failing to produce the log1 table with odds ratios, the other table Est1 is produced correctly.

This code, however,  works perfectly well without the strata option, ie the conditional regression where both output tables are generated!.

Any idea?

Best regards




Accepted Solutions
Solution
‎07-20-2015 02:25 PM
Regular Contributor
Posts: 163

Re: Output odds ratios from conditional logistic regression

Solved with ODS TRACE ON

The output should be oddsratios and not CLOddsWald

Best regards

View solution in original post


All Replies
Regular Contributor
Posts: 163

Re: Output odds ratios from conditional logistic regression

The error generated (warning)

WARNING: Output 'CLOddsWald' was not created.  Make sure that the output object name, label, or path

         is spelled correctly.  Also, verify that the appropriate procedure options are used to

         produce the requested output object.  For example, verify that the NOPRINT option is not

         used.

Solution
‎07-20-2015 02:25 PM
Regular Contributor
Posts: 163

Re: Output odds ratios from conditional logistic regression

Solved with ODS TRACE ON

The output should be oddsratios and not CLOddsWald

Best regards

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 421 views
  • 0 likes
  • 1 in conversation