<?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: Color of Line, Lifetest Plot (Using Warren K's macros) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Color-of-Line-Lifetest-Plot-Using-Warren-K-s-macros/m-p/669849#M201000</link>
    <description>&lt;P&gt;Where do you use this macro variable?&lt;/P&gt;
&lt;P&gt;Show the code please.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jul 2020 10:06:11 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-07-16T10:06:11Z</dc:date>
    <item>
      <title>Color of Line, Lifetest Plot (Using Warren K's macros)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Color-of-Line-Lifetest-Plot-Using-Warren-K-s-macros/m-p/669076#M200669</link>
      <description>&lt;P&gt;I found this instruction in Warren Kuhfeld's documentation for controlling the color of the LIFETEST plot line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let GraphOpts = DataContrastColors=(red green blue)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataColors = (red green blue);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I find that this only works when a STRATA statement is used.&amp;nbsp; I'm plotting a single group, and don't want a STRATA (because I don't want a legend or the strata title in the plot).&amp;nbsp; But the line comes out gray without the STRATA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not the end of the world, but is there a way to have a non-gray line without STRATA label in the to&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 03:36:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Color-of-Line-Lifetest-Plot-Using-Warren-K-s-macros/m-p/669076#M200669</guid>
      <dc:creator>daveconifer1</dc:creator>
      <dc:date>2020-07-14T03:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Color of Line, Lifetest Plot (Using Warren K's macros)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Color-of-Line-Lifetest-Plot-Using-Warren-K-s-macros/m-p/669849#M201000</link>
      <description>&lt;P&gt;Where do you use this macro variable?&lt;/P&gt;
&lt;P&gt;Show the code please.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 10:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Color-of-Line-Lifetest-Plot-Using-Warren-K-s-macros/m-p/669849#M201000</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-16T10:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Color of Line, Lifetest Plot (Using Warren K's macros)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Color-of-Line-Lifetest-Plot-Using-Warren-K-s-macros/m-p/670002#M201075</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/297982"&gt;@daveconifer1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://support.sas.com/documentation/onlinedoc/stat/ex_code/142/templft.html" target="_blank" rel="noopener"&gt;macro code&lt;/A&gt; (see macro &lt;FONT face="courier new,courier"&gt;SingleStratum&lt;/FONT&gt;) suggests that for your purpose macro variable &lt;FONT face="courier new,courier"&gt;StepOpts&lt;/FONT&gt; is relevant. Modifying the example&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_kaplan_sect017.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank" rel="noopener"&gt;Changing the Line Thickness&lt;/A&gt; to&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%ProvideSurvivalMacros

%let StepOpts = lineattrs=(&lt;STRONG&gt;&lt;FONT color="#00CCFF"&gt;color=red&lt;/FONT&gt;&lt;/STRONG&gt;);

%CompileSurvivalTemplates

proc lifetest data=sashelp.BMT plots=survival(cb=hw test);
   &lt;FONT color="#00CCFF"&gt;&lt;STRONG&gt;where Group='ALL';&lt;/STRONG&gt;&lt;/FONT&gt;
   time T * Status(0);
   &lt;STRONG&gt;&lt;FONT color="#00CCFF"&gt;/* STRATA statement removed */&lt;/FONT&gt;&lt;/STRONG&gt;
run;&lt;/PRE&gt;
&lt;P&gt;yields a red Kaplan-Meier curve (for group 'ALL').&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 21:41:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Color-of-Line-Lifetest-Plot-Using-Warren-K-s-macros/m-p/670002#M201075</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-07-16T21:41:26Z</dc:date>
    </item>
  </channel>
</rss>

