BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
LiHZ
Fluorite | Level 6

Hi everyone, 

 

Please bear with me. I'm confused to understand Odds Ratio in Proc Glimmix with interaction.

In Proc Logistic, if there is an interaction between factor A(two levels) and B(levels ≥2), Odds ratio of A will be presented in different level of B. In a word, there are different OR of A under different level of B.

However, in Proc Glimmix, only one OR is presented even if there is an interaction.

Here is my code are result.

 

proc glimmix data=mas ;
where farm ne 'hy';
class season(ref='summer') treatment parity(ref='1') result farm year ;
model result(event='pregnant')= season | parity | treatment /
dist=binary oddsratio ;
random farm year;
run;

result.png

As you can see, there is an interaction between treatment and parity or season.

However, OR of treatment is 1.509.

Why there is a difference between proc logistic and proc glimmix in the matter of OR?

Thanks in advance for the help! 

1 ACCEPTED SOLUTION

Accepted Solutions
2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

Moved to stats community so maybe you get an answer.

LiHZ
Fluorite | Level 6

Hope this may help whom have the same problem.

https://support.sas.com/kb/24/455.html

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1959 views
  • 1 like
  • 2 in conversation