BookmarkSubscribeRSS Feed
sms1891
Quartz | Level 8

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! 

3 REPLIES 3
Rick_SAS
SAS Super FREQ

What version of SAS are you running?

%put &=SYSVLONG4;

 

sms1891
Quartz | Level 8

My SAS is 9.04.01M5P091317. I have SAS 9.04, Operating system LIN X64. I uses SAS enterprise guide 7.1.

Rick_SAS
SAS Super FREQ

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.

 

 

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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