data new;
input
education $ wealth obesity @@;
datalines;
0 5 0 1 0 1 0 3 0 1 0 1 0 1 1 1 1 1 1 2 0 1 4 0
;
run;
proc surveylogistic data=GAIR60FL nomcar;
class education (ref = '0') residence (ref = '2') v131 (ref = '1') / param=ref;
model BMI(event='1')= education v190 education*v190 residence parity v012 v131/CLODDS;
weight sam_wei;
strata v022;
cluster v021;
estimate 'OR for v190=5 (vs v190=1) @ level 1 of education' v190 1 0 education*v190 5 1/ exp cl;
run; Hi there, I am having difficulty determining the correct code for a continuous and categorical interaction in proc survey logistic. I have read this paper and it seems slice by only works for categorical variables. I would like to know what else I could try. Here is what I want to do - I am trying to run an interaction of education on the association of wealth index on overweight. Education is coded as “0” and “1” and run as a categorical variable Wealth index is numbered from 1 – 5 and is run as a continuous variable Overweight is binary – “0” and “1” This means I am interested in examining the relationship of wealth index with overweight when education is “0” and the same relationship when education is “1” My code is below with an example structure of my data. I tried to use estimate but the odds ratio estimates were not what i expected as I already used the slice by option to conduct the same analysis with wealth index as categorical. Can anyone please help?
... View more