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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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