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

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore 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
  • 553 views
  • 0 likes
  • 2 in conversation