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