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;
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!
Hope this may help whom have the same problem.
Moved to stats community so maybe you get an answer.
Hope this may help whom have the same problem.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.