BookmarkSubscribeRSS Feed
PamG
Quartz | Level 8

Is there a way I can report odds ratio comparing 2 points for a GAM model?

 

proc gampl data=mydata;
   class gender / param=ref;
   model response(event='1') = gender spline(age)  / dist=binary link=logit;
run;

  For eg, is there a way, I can report OR at say  age=65 to age=75?   I know that R has an package, oddsratio specifically for GAM to get such odds ratios.  How can we replicate something similar in SAS?

1 REPLY 1
Ksharp
Super User
Since you are asking OR for a SPLINE effect(a.k.a a non-linear effect), that is not easy to get it.
I think you need help from macro %margin , %nlmeans:
https://support.sas.com/kb/35/189.html
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
  • 1 reply
  • 106 views
  • 0 likes
  • 2 in conversation