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
Rhodochrosite | Level 12

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
Rhodochrosite | Level 12

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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 2704 views
  • 4 likes
  • 3 in conversation