Hi there, I have the code below to run competing risk analysis and try to plot the CIF curves using proc sgplot. But I found the column of censored in the outcif dataset has values 0, 1, 2, and 3. I guess 0 means event of interest happened, 1 means there was censoring. I wonder what 2 and 3 mean? By the way, my event code is: 0=event free, 1=event of interest, 2=competing events
proc lifetest data=master2 plots=CIF(test) outcif=cif1 timelist=0 to 60 by 12; time months_to_scenario1*event_scenario1(0)/eventcode=1; strata study_id; run;
data cif1; set cif1; if Censored=1 then cenp=cif; run; proc sgplot data=cif1; step x=months_to_scenario1 y=cif/group=study_id; scatter x=months_to_scenario1 y=cenp / markerattrs=(symbol=plus) GROUP=study_id; xaxis values=(0 to 60 by 12); run;
Thank you.
... View more