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?
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...
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.
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...
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!
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.