BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
riyaaora275
Obsidian | Level 7

I need to modify the Label and  x / y axis of the Kaplan Meier curve. I modify the template due to restrictions on my system. 

Codes I have tried -

 

title 'KM';
axis1 label= ("yaxis");
axis2 label= ('xaxis');

proc lifetest data=graph3  DESCRIPTION='xyz'
maxtime =1000  plots=(survival ( atrisk=0 to 2500 by 250 outside nocensor ) );
time time*status(0);
strata class;
/*weight wgt;*/
/*title 'KM curve';*/
/*title2 'xyz';*/
/*axis1 label=( 'xaxis');*/
/*label time = 'days';*/
run;

 

Nothing seems to work. 

I also need to modify the strata label names as well. 

Any other commands that I can use? 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenKuhfeld
Ammonite | Level 13

Yes. Refer to the chapter that @ballardw mentions. I wrote and revised that chapter over the course of several years before I retired from SAS. It has every KM plot modification that I ever heard that customers wanted to make. You might want to start with the examples here. https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=statug&docsetTarget=statu...

View solution in original post

2 REPLIES 2
ballardw
Super User

Please see: https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=statug&docsetTarget=statu...

 

The plots do not use traditional SAS Graph options. You can find examples of changing things for the displays at the above link.

WarrenKuhfeld
Ammonite | Level 13

Yes. Refer to the chapter that @ballardw mentions. I wrote and revised that chapter over the course of several years before I retired from SAS. It has every KM plot modification that I ever heard that customers wanted to make. You might want to start with the examples here. https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=statug&docsetTarget=statu...

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!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 3200 views
  • 4 likes
  • 3 in conversation