I am using proc genmod
to estimate risk ratios. Two of my predictor variables have more than 2 levels. My gender
variable is ‘male’, ‘female’, ‘other’
and race is ‘white’
,’non-hispanic black’
, ‘hispanic’
. Here is how I set up the model. I get only 1 risk ratio. Is it possible to risk ratio for each level of the predictor variable? I have not done this before, so any advice is appreciated.
Thanks.
Proc genmod data=rr_genmod;
Class gender(ref=’male’) race (ref=’white’);
Model outcomeA(ref=’1’)=gender race/ dist=binomial link=log;
ESTIMATE 'BETA' GENDER 1-1/EXP;
ESTIMATE 'BETA' RACE 1-1/EXP;
RUN;