<?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: Why is it so annoying to modify the axis in proc lifetest in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365533#M275133</link>
    <description>&lt;P&gt;This is the error from the log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;12018 %CompileSurvivalMacros;&lt;BR /&gt;-&lt;BR /&gt;180&lt;BR /&gt;WARNING: Apparent invocation of macro COMPILESURVIVALMACROS not resolved.&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!!&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2017 21:36:38 GMT</pubDate>
    <dc:creator>Jest</dc:creator>
    <dc:date>2017-06-08T21:36:38Z</dc:date>
    <item>
      <title>Why is it so annoying to modify the axis in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365521#M275129</link>
      <description>&lt;P&gt;why is it not straightforward to change the axis in a survival plot in proc lifetest?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to change the x-axis and it doesn't seem to take...any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let xOptions = label="Time to Event (months)"&lt;BR /&gt;linearopts=(viewmin=0 viewmax=12&lt;BR /&gt;tickvaluelist=(0 2 4 6 8 10 12));&lt;BR /&gt;&lt;BR /&gt;proc lifetest data=Work.Work atrisk plots=survival(atrisk cb) outs=out;&lt;BR /&gt;strata type;&lt;BR /&gt;time visit*status(0);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 20:55:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365521#M275129</guid>
      <dc:creator>Jest</dc:creator>
      <dc:date>2017-06-08T20:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why is it so annoying to modify the axis in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365525#M275130</link>
      <description>&lt;P&gt;Why? Probably because most of the graphics from analysis procedures are not intended to produce publication ready graphs but to provide information for analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to set the option and then use the macros&lt;/P&gt;
&lt;P&gt;%providesurvivalmacros&lt;/P&gt;
&lt;P&gt;%compilesurvivaltemplates&lt;/P&gt;
&lt;P&gt;AFTER you set the option macro variable.&lt;/P&gt;
&lt;P&gt;You have to re-execute the macros each time to apply the values.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 21:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365525#M275130</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-08T21:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why is it so annoying to modify the axis in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365527#M275131</link>
      <description>&lt;P&gt;tried that. It didn't work...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%ProvideSurvivalMacros;&lt;BR /&gt;%let xOptions = label="Time to Event (months)"&lt;BR /&gt;linearopts=(viewmin=0 viewmax=12)&lt;BR /&gt;tickvaluelist=(0 2 4 6 8 10 12));&lt;BR /&gt;%CompileSurvivalMacros;&lt;BR /&gt;proc lifetest data=Work.Work atrisk plots=survival(atrisk cb) outs=out;&lt;BR /&gt;strata type;&lt;BR /&gt;time visit*status(0);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;am I missing something?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 21:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365527#M275131</guid>
      <dc:creator>Jest</dc:creator>
      <dc:date>2017-06-08T21:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why is it so annoying to modify the axis in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365532#M275132</link>
      <description>&lt;P&gt;You might try posting the log if there are any messages.&lt;/P&gt;
&lt;P&gt;Or some example data that will duplicate the (non-)behavior.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 21:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365532#M275132</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-08T21:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why is it so annoying to modify the axis in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365533#M275133</link>
      <description>&lt;P&gt;This is the error from the log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;12018 %CompileSurvivalMacros;&lt;BR /&gt;-&lt;BR /&gt;180&lt;BR /&gt;WARNING: Apparent invocation of macro COMPILESURVIVALMACROS not resolved.&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 21:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365533#M275133</guid>
      <dc:creator>Jest</dc:creator>
      <dc:date>2017-06-08T21:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why is it so annoying to modify the axis in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365554#M275134</link>
      <description>&lt;P&gt;What version of SAS are you using?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 22:41:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365554#M275134</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-08T22:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why is it so annoying to modify the axis in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365742#M275135</link>
      <description>&lt;P&gt;Have you gone to &lt;A href="http://support.sas.com/documentation/onlinedoc/stat/ex_code/141/templft.html" target="_blank"&gt;http://support.sas.com/documentation/onlinedoc/stat/ex_code/141/templft.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and downloaded the source file for the macros? Is the source file named &amp;nbsp;ProvideSurvivalMacros.SAS and in your SASAUTOS path?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 15:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365742#M275135</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-09T15:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why is it so annoying to modify the axis in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365773#M275136</link>
      <description>In one of the macros at the link provided above by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;, I was very surprised to see:&lt;BR /&gt;%scan(2,2-&amp;amp;outside)&lt;BR /&gt;Could someone explain what this does when &amp;amp;outside has value=0&lt;BR /&gt;?</description>
      <pubDate>Fri, 09 Jun 2017 18:04:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365773#M275136</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2017-06-09T18:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why is it so annoying to modify the axis in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365786#M275137</link>
      <description>&lt;P&gt;No, I haven't done that part as I assumed it is already built in in SAS.&lt;/P&gt;&lt;P&gt;Excuse my ignorance but what is the best way of downloading the template?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I have been reading the following instrucyions:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_templt_a0000000061.htm&amp;nbsp;" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_templt_a0000000061.htm&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How does one use the layout overlay statement with the proc lifetest..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really think this should be easier, as in other programs like STATA it is much easier...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 18:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365786#M275137</guid>
      <dc:creator>Jest</dc:creator>
      <dc:date>2017-06-09T18:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why is it so annoying to modify the axis in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365806#M275138</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15174"&gt;@Peter_C&lt;/a&gt; wrote:&lt;BR /&gt;In one of the macros at the link provided above by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;, I was very surprised to see:&lt;BR /&gt;%scan(2,2-&amp;amp;outside)&lt;BR /&gt;Could someone explain what this does when &amp;amp;outside has value=0&lt;BR /&gt;?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since the value scanned would be a single word and items more than 1 requested would yield a blank as the macro processor does the arithmetic and 2-0=2, so scans for the second "word".&lt;/P&gt;
&lt;P&gt;See the log after running&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0080" face="SAS Monospace" size="2"&gt;%let&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; k =&lt;/FONT&gt;&lt;FONT color="#ff0080" face="SAS Monospace" size="2"&gt;%scan&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;(1,2-0);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0080" face="SAS Monospace" size="2"&gt;%put&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; &amp;amp;k;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0080" face="SAS Monospace" size="2"&gt;%let&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; k =&lt;/FONT&gt;&lt;FONT color="#ff0080" face="SAS Monospace" size="2"&gt;%scan&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;(1 2,2-0);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0080" face="SAS Monospace" size="2"&gt;%put&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; &amp;amp;k;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 19:50:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365806#M275138</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-09T19:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why is it so annoying to modify the axis in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365811#M275139</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/128691"&gt;@Jest&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;No, I haven't done that part as I assumed it is already built in in SAS.&lt;/P&gt;
&lt;P&gt;Excuse my ignorance but what is the best way of downloading the template?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't know if it is "best" but I copied and pasted the text from the code section into an editor and saved it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will really have to clarify what you mean by "use layout overlay". The ProvideSurvivalMacros uses Layout overlay in 5 different locations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you investigate the templates associated with Proc Lifereg there are over 50 templates associated. Depending on what I want to display I generally dump data to output sets and build graphs from scratch (or Graphics Designer)&amp;nbsp;instead of attempting to create pulication quality&amp;nbsp;graphics from analysis templates.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 19:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365811#M275139</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-09T19:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why is it so annoying to modify the axis in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365832#M275140</link>
      <description>%scan(2,2-&amp;amp;outside)Seems a complicated way to produce 2 or nothing</description>
      <pubDate>Fri, 09 Jun 2017 20:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365832#M275140</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2017-06-09T20:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is it so annoying to modify the axis in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365848#M275141</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15174"&gt;@Peter_C&lt;/a&gt; wrote:&lt;BR /&gt;%scan(2,2-&amp;amp;outside)Seems a complicated way to produce 2 or nothing&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Agreed. Certainly more than&amp;nbsp;a tad obtuse.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't&amp;nbsp;read all of that code so I'm not sure if there are cases where &amp;amp;outside could be blank or a non-numeric appearing value which would be an error&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 21:51:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365848#M275141</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-09T21:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why is it so annoying to modify the axis in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365917#M275142</link>
      <description>Usually &amp;amp;outside is used in a boolean test. Its value is fixed as either 0 or 1.It is used in constructing proc template code - I do not think the %do loop provides much benefit over a repeat of the base code being generated with the few, minor variations&amp;nbsp;</description>
      <pubDate>Sat, 10 Jun 2017 15:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-it-so-annoying-to-modify-the-axis-in-proc-lifetest/m-p/365917#M275142</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2017-06-10T15:52:39Z</dc:date>
    </item>
  </channel>
</rss>

