BookmarkSubscribeRSS Feed
lillymaginta1
Obsidian | Level 7

Hi everyone, 

 

I am trying to  estimate cumulative inc and 95% CI but want to incorporate weight in the code, is this possible? I do not have competing events in the model 

proc lifetest data=s outcif=cif_overall; 
    time time * outcome3(0) / failcode=1; 
    strata drug;
	weight ipcw_weight
run;
1 REPLY 1
quickbluefish
Barite | Level 11
Guessing you are doing a competing risks analysis (with inverse propensity of censoring)? I would recommend you try using PROC PHREG for this. That will also allow you to plot the cumulative incidence (and presumably add your weight statement). Have a look at this:

https://documentation.sas.com/doc/en/pgmsascdc/v_069/statug/statug_phreg_examples15.htm

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

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 213 views
  • 0 likes
  • 2 in conversation