How to output odds ratios for continuous variable in Proc Genmod

Reply
Contributor
Posts: 42

How to output odds ratios for continuous variable in Proc Genmod

PROC GENMOD DATA = TEMP;

CLASS ID  ;

MODEL Y (EVENT = '1')  = age /dist=bin link = ? logit;

REPEATED SUBJECT = ID /TYPE = exch;

ESTIMATE 'age'  age 30.5 / exp;

RUN;

This code does have output of exp(age), L'beta estimate.

But I do not know what value to use for age in the ESTIMATE statement, mean age??

Thank you!!!

Super User
Posts: 19,768

Re: How to output odds ratios for continuous variable in Proc Genmod

The exp(age) is your odds ratio, for every year increase in age...etc.

If you're using a specified age then that's different than the standard odds ratio.

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