<?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: Remove Confidence Band Label in LIFETEST procedure in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Remove-Confidence-Band-Label-in-LIFETEST-procedure/m-p/575595#M18539</link>
    <description>&lt;P&gt;Just going to make a plug for my survival graphing macro that I've shared on here:&amp;nbsp; &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Kaplan-Meier-Survival-Plotting-Macro-NEWSURV/ta-p/479747" target="_self"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Kaplan-Meier-Survival-Plotting-Macro-NEWSURV/ta-p/479747&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you'll find it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has all sorts of features for survival graphs.&amp;nbsp; I think you could make your graph with the following macro call:&lt;/P&gt;
&lt;P&gt;%newsurv(data=file, time=os_time_km, cens=vitalstatusos_km, cen_vl=1, summary=0, display=, risklist=0 to 22.5 by 2.5, risklocation=inside, ylabel=Overall Survival Probability (%), yincrement=25, classdesc=At Risk, parheader=, riskdivider=0, height=550px, linesize=2.5, censormarkers=0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jul 2019 21:16:29 GMT</pubDate>
    <dc:creator>JeffMeyers</dc:creator>
    <dc:date>2019-07-22T21:16:29Z</dc:date>
    <item>
      <title>Remove Confidence Band Label in LIFETEST procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Remove-Confidence-Band-Label-in-LIFETEST-procedure/m-p/575256#M18535</link>
      <description>&lt;P&gt;I am able to display 95% Hall-Wellner Confidence bands in my lifetest procedure and want to keep them on the graph, but want to remove the legend at the bottom of the graph that says "95% Hall-Wellner Band"&lt;/P&gt;&lt;P&gt;I know that when I separate by strata this legend disappears, but when only one strata is displayed this lable/legend is present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my lifetest code if helpful:&lt;/P&gt;&lt;P&gt;proc lifetest data=file plots=survival (cb nocensor atrisk=0 to 22.5 by 2.5);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time OS_time_KM*vitalstatusOS_KM(1);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a line of code in the %macro ProvideSurvivalMacros from the "Customizing the Kaplan-Meier Survival Plot" chapter?&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="I want to keep the bands, but the delete the legend/label" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31181i8A08376D14CE3E29/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph.jpg" alt="I want to keep the bands, but the delete the legend/label" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;I want to keep the bands, but the delete the legend/label&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 03:05:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Remove-Confidence-Band-Label-in-LIFETEST-procedure/m-p/575256#M18535</guid>
      <dc:creator>jtepe93</dc:creator>
      <dc:date>2019-07-22T03:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Confidence Band Label in LIFETEST procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Remove-Confidence-Band-Label-in-LIFETEST-procedure/m-p/575552#M18536</link>
      <description>&lt;P&gt;Did you try the steps in the section &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_kaplan_sect032.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;"Suppressing the Legend"?&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;%let LegendOpts = ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 19:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Remove-Confidence-Band-Label-in-LIFETEST-procedure/m-p/575552#M18536</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-07-22T19:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Confidence Band Label in LIFETEST procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Remove-Confidence-Band-Label-in-LIFETEST-procedure/m-p/575555#M18537</link>
      <description>&lt;P&gt;Yes that is in my code &lt;U&gt;%let LegendOpts = ;&lt;/U&gt; doesn't appear to suppress the legend label from the confidence bands in a single stratum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my macro adjustments&lt;/P&gt;&lt;P&gt;%ProvideSurvivalMacros&lt;/P&gt;&lt;P&gt;%let TitleText0 = " " ; /* Change the title. */&lt;BR /&gt;%let TitleText1 = &amp;amp;titletext0 " for " STRATUMID;&lt;BR /&gt;%let TitleText2 = &amp;amp;titletext0;&lt;BR /&gt;%let ntitles = 1;&lt;BR /&gt;%let yOptions = label="Overall Survival Probability (%)"&lt;BR /&gt;linearopts=(viewmin=0 viewmax=1.0&lt;BR /&gt;tickvaluelist=(0 .25 .50 .75 1.00)&lt;BR /&gt;tickvalueformat = PERCENTN10.); *converts tickvalues to percent;&lt;BR /&gt;%let GraphOpts = DesignHeight = 550px;&lt;BR /&gt;%let InsetOpts = ;&lt;BR /&gt;%let LegendOpts = ;&lt;BR /&gt;%let StepOpts = lineattrs=(thickness=2.5);&lt;/P&gt;&lt;P&gt;%CompileSurvivalTemplates;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 19:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Remove-Confidence-Band-Label-in-LIFETEST-procedure/m-p/575555#M18537</guid>
      <dc:creator>jtepe93</dc:creator>
      <dc:date>2019-07-22T19:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Confidence Band Label in LIFETEST procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Remove-Confidence-Band-Label-in-LIFETEST-procedure/m-p/575582#M18538</link>
      <description>&lt;P&gt;Well, there might be a way to do it with the macros, but I'm really busy today so here is the manual way to get what you want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Display the template with the current modifications:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template; 
source Stat.Lifetest.Graphics.ProductLimitFailure;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2. Copy the source into a program editor.&lt;/P&gt;
&lt;P&gt;3. Find the line that says&amp;nbsp;&lt;/P&gt;
&lt;P&gt;discretelegend "Censored" "CL" "HW"&amp;nbsp;"EP" / location=outside halign=center;&lt;/P&gt;
&lt;P&gt;and edit it to remove the HW name, like this:&lt;/P&gt;
&lt;P&gt;discretelegend "Censored" "CL" &lt;STRONG&gt;&lt;FONT color="#339966"&gt;/* "HW" */&lt;/FONT&gt;&lt;/STRONG&gt; "EP" / location=outside halign=center;&lt;/P&gt;
&lt;P&gt;4. Save the template by running the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define statgraph Stat.Lifetest.Graphics.ProductLimitSurvival;
   dynamic NStrata xName plotAtRisk plotCensored plotCL plotHW plotEP labelCL labelHW labelEP maxTime xtickVals xtickValFitPol
      rowWeights method StratumID classAtRisk plotTest GroupName Transparency SecondTitle TestName pValue _byline_ _bytitle_
      _byfootnote_;
   BeginGraph;

ETC...PASTE REST OF SOURCE HERE, INCLUDING CHANGES

   EndGraph;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;5. Now run PROC LIFETEST and the HW bands will not appear in the legend.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 20:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Remove-Confidence-Band-Label-in-LIFETEST-procedure/m-p/575582#M18538</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-07-22T20:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Confidence Band Label in LIFETEST procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Remove-Confidence-Band-Label-in-LIFETEST-procedure/m-p/575595#M18539</link>
      <description>&lt;P&gt;Just going to make a plug for my survival graphing macro that I've shared on here:&amp;nbsp; &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Kaplan-Meier-Survival-Plotting-Macro-NEWSURV/ta-p/479747" target="_self"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Kaplan-Meier-Survival-Plotting-Macro-NEWSURV/ta-p/479747&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you'll find it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has all sorts of features for survival graphs.&amp;nbsp; I think you could make your graph with the following macro call:&lt;/P&gt;
&lt;P&gt;%newsurv(data=file, time=os_time_km, cens=vitalstatusos_km, cen_vl=1, summary=0, display=, risklist=0 to 22.5 by 2.5, risklocation=inside, ylabel=Overall Survival Probability (%), yincrement=25, classdesc=At Risk, parheader=, riskdivider=0, height=550px, linesize=2.5, censormarkers=0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 21:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Remove-Confidence-Band-Label-in-LIFETEST-procedure/m-p/575595#M18539</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2019-07-22T21:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Confidence Band Label in LIFETEST procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Remove-Confidence-Band-Label-in-LIFETEST-procedure/m-p/575624#M18540</link>
      <description>&lt;P&gt;thanks will give this a try in my next round of KM curves!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 01:02:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Remove-Confidence-Band-Label-in-LIFETEST-procedure/m-p/575624#M18540</guid>
      <dc:creator>jtepe93</dc:creator>
      <dc:date>2019-07-23T01:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Confidence Band Label in LIFETEST procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Remove-Confidence-Band-Label-in-LIFETEST-procedure/m-p/575717#M18541</link>
      <description>&lt;P&gt;If you think you will need to make this change more than once, you can automate it by using Steps 1-4 of Kuhfeld's template modification technique. See &lt;A href="https://blogs.sas.com/content/iml/2017/10/30/programming-modify-ods-templates.html" target="_self"&gt;"A SAS programming technique to modify ODS templates"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Instead of Step 5, you will run PROC LIFETEST.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 11:32:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Remove-Confidence-Band-Label-in-LIFETEST-procedure/m-p/575717#M18541</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-07-23T11:32:06Z</dc:date>
    </item>
  </channel>
</rss>

