Hi all,
I am working on a huge data set (8+ million records), and I need to generate cumulative incidence curves where I can control the X-axis and Y-axis.
I am looking for fixed X-axis intervals (like 0, 2, 4, 6, 8, 10 years) rather than automatic sas generated axes values.
%CIF(DATA=bmt,TIME=Ftime,STATUS=Status,EVENT=1,CENSORED=0,GROUP=Diagnosis,OPTIONS=NOTEST);
I used the OUT=cifout option, but the graphs I get from this are funky. I am not getting the same graphs as I originally got. Is there anyway I can modify the graph axes in the original macro code?
%CIF(DATA=bmt, OUT=cifout, TIME=Ftime,STATUS=Status,EVENT=1,CENSORED=0,GROUP=Diagnosis,OPTIONS=NOTEST);
%CIF(DATA=bmt,TIME=Ftime,STATUS=Status,EVENT=1,CENSORED=0,GROUP=Diagnosis,OPTIONS=NOTEST);
%CIF(DATA=bmt, OUT=cifout, TIME=Ftime,STATUS=Status,EVENT=1,CENSORED=0,GROUP=Diagnosis,OPTIONS=NOTEST);
Thank you so much for all your help in advance!
What version of SAS are you running?
%put &=SYSVLONG4;
My SAS is 9.04.01M5P091317. I have SAS 9.04, Operating system LIN X64. I uses SAS enterprise guide 7.1.
Great, then you can use PROC LIFETEST, as mentioned at http://support.sas.com/kb/45/997.html
You can use the OUTCIF= option in PROC LIFETEST to write the estimated CIF to a SAS data set, then you can use PROC SGPLOT and have complete control over the axes.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.