BookmarkSubscribeRSS Feed
SeaMoon_168
Quartz | Level 8

I found some information about using 'proc causaltrt' procedure such as IPWS to calculate ATT (SAS code below from https://documentation.sas.com/doc/en/statcdc/14.2/statug/statug_causaltrt_examples01.htm). However, I am not sure how to get survival outcomes using this procedure. I can find some R packages for this purpose. Could you help me figure it out using SAS? Many thanks.

proc causaltrt data=smokingweight method=IPWS;
   class Sex Race Education Exercise Activity Quit /desc;
   psmodel Quit = Sex Age Education Exercise Activity YearsSmoke PerDay;
   model Change;
run;

 

 

3 REPLIES 3
sbxkoenk
SAS Super FREQ

I did move this topic to 'Statistical Procedures' - board.

And calling @clayt85 .

 

Koen

quickbluefish
Barite | Level 11

Are you trying to get something like an IPT-weighted hazard ratio?

SeaMoon_168
Quartz | Level 8

Yes, kind of. Could you help me figure it out? Many thanks.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register 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
  • 3 replies
  • 1190 views
  • 0 likes
  • 3 in conversation