Hi, I want to get OR for 3 interaction term but SAS is not giving me the output that I am looking for. Here is the code: proc logistic data=bp;
class location(ref='1')
mhi_q (ref='4')
lesshs_q (ref='4')
nhwmed_p (ref='2')
nhbmed_p (ref='2')
hispmed_p (ref='2')
/param=ref;
model bpyn(event='1') = location mhi_q lesshs_q nhwmed_p nhbmed_p hispmed_p unemprate HI_rate location*nhwmed_p location*nhbmed_p location*hispmed_p;
oddsratio location/at(nhbmed_p='1' '2') diff=ref;
oddsratio location/at (hispmed_p='1' '2') diff=ref;
oddsratio location/at (nhwmed_p= '1' '2') diff=ref;
run; This output gives me OR for all 3 race/ethnicity (Black, White, Hispanic) at once for location (rural=0, urban=1). Race/ethnicity is coded as 1 and 2, so all three of them are separate variables. What output I need is like this: Location 0 vs 1 at NHWMed_P=1 NHWMed_P=2 Location 0 vs 1 at NHBMed_P=1 NHBMed_P=2 Location 0 vs 1 at HispMed_P=1 HispMed_P=2 I have tried changing the codes multiple times, but nothing gives this output. Please help me! Thanks in advance
... View more