Hello!
I am trying to calculate adjusted proportions for a binary outcome by quintile. I'm wondering why I get different results from LSMEANS in GENMOD & LOGISTIC. Both models are using the same reference groups (last quintile and non-male; age is continuous). If I remove the confounding variables (male and age) then the means from LSMEANS are the same. What am I missing here??
PROC GENMOD DATA=origs DESCENDING;
class quint;
model MI = quint male age;
lsmeans quint;
run;
PROC LOGISTIC DATA=origs descending;
CLASS quint / param=glm;
model MI= quint male age;
lsmeans quint / e ilink ;
run;