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: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1284 views
  • 0 likes
  • 2 in conversation