<?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: Limiting the X-axis Range in Proc Lifetest in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Limiting-the-X-axis-Range-in-Proc-Lifetest/m-p/388474#M13310</link>
    <description>&lt;P&gt;Thank you Reeza!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently, you need to include all the syntax in the proc template for it to work properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This link was a great resource for anyone who needs it:&amp;nbsp;&lt;A href="http://support.sas.com/kb/43/910.html&amp;nbsp;" target="_blank"&gt;http://support.sas.com/kb/43/910.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you SAS Community!&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2017 14:39:32 GMT</pubDate>
    <dc:creator>einstein</dc:creator>
    <dc:date>2017-08-16T14:39:32Z</dc:date>
    <item>
      <title>Limiting the X-axis Range in Proc Lifetest</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Limiting-the-X-axis-Range-in-Proc-Lifetest/m-p/388281#M13307</link>
      <description>&lt;P&gt;I'm trying to limit the survival estimates graph to only display data up to 72 hours. &amp;nbsp;Right now the data is displaying unto 100 hours. &amp;nbsp;My original survial time data was in seconds so I converted it to hours and altered the template to have a viewmax=72. &amp;nbsp;But this seems to give me the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WARNING: Insufficient data to produce 'Stat.Lifetest.Graphics.&lt;/SPAN&gt;&lt;SPAN&gt;ProductLimitSurvival' Graph.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't get this error if I simply ran the code without a viewmax=72 limit. &amp;nbsp;Does anyone know what I must be doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data linex; set line;
*where survival_time &amp;lt;='72:00:00't;
survival_timex=survival_time*0.000277778;
run;

ods path show;
proc template;
 define statgraph Stat.Lifetest.Graphics.ProductLimitSurvival; 
 
  begingraph;
   layout overlay /
    xaxisopts=(label="Survival Time (Hours)" offsetmin=.05 
	linearopts=( viewmax=80 tickvaluelist=(0 20 40 60 72)));
   endlayout;
  endgraph;
 end;
run;

ods graphics on;
ODS TRACE ON;

Proc lifetest data=linex plots=(s, lls) graphics;
	Time survival_timex*delta(0);
	Strata final_placement;
	Format final_placement treatment_assignment_.;
Run;
ods graphics off;

 proc template;
      delete Stat.Lifetest.Graphics.ProductLimitSurvival;
 run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Aug 2017 19:53:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Limiting-the-X-axis-Range-in-Proc-Lifetest/m-p/388281#M13307</guid>
      <dc:creator>einstein</dc:creator>
      <dc:date>2017-08-15T19:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting the X-axis Range in Proc Lifetest</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Limiting-the-X-axis-Range-in-Proc-Lifetest/m-p/388284#M13308</link>
      <description>&lt;P&gt;Is the only reason you're using PROC TEMPLATE to control the x axis?&lt;/P&gt;
&lt;P&gt;You can use the macros in the documentation, have you tried playing around with those?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ViewMax appears to be the right option, so I suspect the issue is somewhere else. Generally when this happens I start from scratch and change one thing at a time until it works &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a link that goes over how to do all the changes for PROC LIFETEST:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2017/06/12/customizing-kaplan-meier-plot/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2017/06/12/customizing-kaplan-meier-plot/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 19:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Limiting-the-X-axis-Range-in-Proc-Lifetest/m-p/388284#M13308</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-15T19:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting the X-axis Range in Proc Lifetest</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Limiting-the-X-axis-Range-in-Proc-Lifetest/m-p/388474#M13310</link>
      <description>&lt;P&gt;Thank you Reeza!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently, you need to include all the syntax in the proc template for it to work properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This link was a great resource for anyone who needs it:&amp;nbsp;&lt;A href="http://support.sas.com/kb/43/910.html&amp;nbsp;" target="_blank"&gt;http://support.sas.com/kb/43/910.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you SAS Community!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 14:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Limiting-the-X-axis-Range-in-Proc-Lifetest/m-p/388474#M13310</guid>
      <dc:creator>einstein</dc:creator>
      <dc:date>2017-08-16T14:39:32Z</dc:date>
    </item>
  </channel>
</rss>

