Hello! I am running a log binomial regression to predict relative risk of an outcome occurring (let's say Y, 0=absent, 1=present) based on a predictor (X with nominal categories 1, 2, 3, and 4). Most coding suggestions show how to do log binomial regression with a binomial predictor (not multicategorical predictor), but I want to compare RR of classes 2-4 to reference class 1. I tried the code below, but the mean estimates in the output don't entirely make sense based on my earlier ANVOA and odds ratio results. Any suggestsions? TITLE 'UNADJUSTED X predicting Y'; proc genmod data = dataname; CLASS X (ref="1" param=ref); MODEL Y (event="1")= X/ dist = binomial link = log; estimate 'Class 2' X 1/ exp; estimate 'Class 3' X 2/ exp; estimate 'Class 4' X 3/ exp; run;
... View more