SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
daveconifer1
Fluorite | Level 6

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?

lifetest.jpg

 

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;

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

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.

 

View solution in original post

2 REPLIES 2
FreelanceReinh
Jade | Level 19

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.

 

daveconifer1
Fluorite | Level 6

Thank you so much, FreelanceReinhard!  It worked!

sas-innovate-white.png

Join us for our biggest event of the year!

Four days of inspiring keynotes, product reveals, hands-on learning opportunities, deep-dive demos, and peer-led breakouts. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 973 views
  • 2 likes
  • 2 in conversation