BookmarkSubscribeRSS Feed
tka726
Obsidian | Level 7

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;

3 REPLIES 3
PaigeMiller
Diamond | Level 26

Oh come on, show us the output.

--
Paige Miller
tka726
Obsidian | Level 7

Sorry, I didn't realize that the output didn't attach.

The results for 'Estimate' in the least square means output section of Genmod are not the same as the 'Mean' in the least square means output of Logistic.

PaigeMiller
Diamond | Level 26

Sorry, but we probably ought to see screen captures of the output, pasted right into your reply. Most of us will not download Microsoft Office documents as they are a security threat.

 

Is it possible the LSMEANS are different because you use ILINK in one procedure but not the other?

--
Paige Miller

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 882 views
  • 0 likes
  • 2 in conversation