<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: change title and axis names of a survival curve in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/change-title-and-axis-names-of-a-survival-curve/m-p/545721#M74323</link>
    <description>&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_kaplan_sect015.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_kaplan_sect015.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this chapter instead.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2019 10:18:36 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2019-03-25T10:18:36Z</dc:date>
    <item>
      <title>change title and axis names of a survival curve</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/change-title-and-axis-names-of-a-survival-curve/m-p/545663#M74321</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using sas 9.4. I've been reading how to change the title of a survival plot and x-axis but don't understand how to use the following macro I found. Do I run proc template first, then run this macro?&amp;nbsp; How do I change this macro to get the title to be "Kaplan Meier Plot" and X-axis "Time (weeks)"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro SurvivalTemplate;
%local outside;
proc template;
%do outside = 0 %to 1;
define statgraph Stat.Lifetest.Graphics.ProductLimitSurvival%scan(2,2-&amp;amp;outside);
dynamic NStrata xName plotAtRisk %if %nrbquote(&amp;amp;censored) ne %then plotCensored;
plotCL plotHW plotEP labelCL labelHW labelEP maxTime xtickVals xtickValFitPol
rowWeights method StratumID classAtRisk plotBand plotTest GroupName yMin
Transparency SecondTitle TestName pValue _byline_ _bytitle_ _byfootnote_;
BeginGraph;
if (NSTRATA=1)
if (EXISTS(STRATUMID)) entrytitle &amp;amp;titletext1;
else entrytitle &amp;amp;titletext0;
endif;
%if not &amp;amp;outside %then if (PLOTATRISK);
entrytitle "With Number of Subjects at Risk" / textattrs=GRAPHVALUETEXT;
%if not &amp;amp;outside %then %do; endif; %end;
%AtRiskLatticeStart
layout overlay / xaxisopts=(&amp;amp;xoptions) yaxisopts=(&amp;amp;yoptions);
%singlestratum
endlayout;
%AtRiskLatticeEnd
else
entrytitle &amp;amp;titletext2;
if (EXISTS(SECONDTITLE))
entrytitle SECONDTITLE / textattrs=GRAPHVALUETEXT;
endif;
%AtRiskLatticeStart
layout overlay / xaxisopts=(&amp;amp;xoptions) yaxisopts=(&amp;amp;yoptions);
%multiplestrata
endlayout;
%AtRiskLatticeEnd(%str(class=CLASSATRISK))
endif;
if (_BYTITLE_) entrytitle _BYLINE_ / textattrs=GRAPHVALUETEXT;
else if (_BYFOOTNOTE_) entryfootnote halign=left _BYLINE_; endif;
endif;
EndGraph;
end;
%end;
run;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 00:28:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/change-title-and-axis-names-of-a-survival-curve/m-p/545663#M74321</guid>
      <dc:creator>lmyers2</dc:creator>
      <dc:date>2019-03-25T00:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: change title and axis names of a survival curve</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/change-title-and-axis-names-of-a-survival-curve/m-p/545721#M74323</link>
      <description>&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_kaplan_sect015.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_kaplan_sect015.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this chapter instead.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 10:18:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/change-title-and-axis-names-of-a-survival-curve/m-p/545721#M74323</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2019-03-25T10:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: change title and axis names of a survival curve</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/change-title-and-axis-names-of-a-survival-curve/m-p/545801#M74325</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm guessing I'm not running the code right because the title remains "Product-Limit Survival Estimate." I also tried to change the code to make the title of the x-axis title "Time (weeks)."&amp;nbsp; Code is below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
   define statgraph Stat.Lifetest.Graphics.ProductLimitSurvival;

%ProvideSurvivalMacros                   
%let TitleText0 = "Kaplan-Meier Plot";    
%let TitleText1 = "Time (weeks)";
%let TitleText2 = &amp;amp;titletext0;
%CompileSurvivalTemplates                

ods graphics on;
proc lifetest data=ecmodata plots=survival (cb=hw atrisk(outside(0.15)));
   time survt * status(0);
run;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Mar 2019 13:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/change-title-and-axis-names-of-a-survival-curve/m-p/545801#M74325</guid>
      <dc:creator>lmyers2</dc:creator>
      <dc:date>2019-03-25T13:31:36Z</dc:date>
    </item>
  </channel>
</rss>

