I've been using the documentation written by the great Warren Kuhfield to customize plots created directly from PROC LIFETEST and using them for submissions.
HOwever, I'm stumped on this one. I have a plot in which I am displaying the number of subjects at risk, but I don't want to display "with number of subjects at risk" in the body of the plot. I have been searching high and low through Warren's KAPLAN.PDF documentation and can't figure this out. Any ideas?
I see this in the log, but don't know how to alter it:
MPRINT(COMPILESURVIVALTEMPLATES): if (PLOTATRISK=1) entrytitle "With Number of Subjects at Risk" / textattrs=GRAPHVALUETEXT;
MPRINT(COMPILESURVIVALTEMPLATES): endif;
Hi @daveconifer1,
I was able to remove the subtitle by compiling the macros provided in https://support.sas.com/documentation/onlinedoc/stat/ex_code/142/templft.html and then submitting
%ProvideSurvivalMacros
%let ntitles=1;
%CompileSurvivalTemplates
before a PROC LIFETEST step (using SAS 9.4M5, SAS/STAT 14.3).
So, if you already use those macros, just add %let ntitles=1; to your existing code for KM plot modifications.
Hi @daveconifer1,
I was able to remove the subtitle by compiling the macros provided in https://support.sas.com/documentation/onlinedoc/stat/ex_code/142/templft.html and then submitting
%ProvideSurvivalMacros
%let ntitles=1;
%CompileSurvivalTemplates
before a PROC LIFETEST step (using SAS 9.4M5, SAS/STAT 14.3).
So, if you already use those macros, just add %let ntitles=1; to your existing code for KM plot modifications.
Thank you so much, FreelanceReinhard! It worked!
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!
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.