Hello, All:
I am trying to create Kaplan-Meier Failure Plot with proc LIFETEST.
I have 2 questions about this.
No.1
Sample code is below.
data bmt;
set sashelp.bmt(where=(group eq "AML-Low Risk"));
run;
options nonumber nodate papersize="A4" orientation=landscape;
ods rtf style=journal;
ods graphics / noborder;
ods select failureplot;
ods noproctitle;
proc lifetest data=bmt plots=(survival(failure atrisk(maxlen=13)));
time t*status(0);
strata group;
title " ";
run;
ods rtf close;About the output, I would like to delete 3 default titles, "The SAS System", "The LIFETEST Procedure", and "Stratum 1: Disease Group = AML-Low Risk".
As you see my code, I used TITLE statement & ODS NOPROCTITLE, and deleted two, "The SAS System", "The LIFETEST Procedure", but the last one, "Stratum 1:~" is not.
Do you have any ideas to delete the last one?
No.2
I would like to customize default label, "At Risk", which expresses the label of # of subjects at risk.
In order to solve these problems, I refered some papers (Kuhfeld WF, et al. -2014-, Geaty H -2015-, etc.) and tried to customize the template, "Stat.Lifetest.Graphics.ProductLimitFailure", but I have no ideas where should be changed.
Thank you in advance.
About No.1 question, I deleted STRATA statement and solved. Sorry!!
I want your answers about No.2 question.
Thank you, Reeza.
I added following code to template "Stat.Lifetest.Graphics.ProductLimitFailure", and I think solved.
DRAWRECTANGLE statement & DRAWTEXT statement
(I do not change original label "At Risk", just overlapped rectangle and comment box lol)
I have no ideas where to be customized template or ATRISK option in proc LIFETEST.
Anyway, thank you!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.