<?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: How do I change the Y axis on proc lifetest? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-Y-axis-on-proc-lifetest/m-p/874173#M23769</link>
    <description>&lt;P&gt;Hi Jay, thank you very much! I spent so much time following another tutorial but didn't work out for me, and your answer helped me out right away!&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 16:33:29 GMT</pubDate>
    <dc:creator>Karen521</dc:creator>
    <dc:date>2023-05-05T16:33:29Z</dc:date>
    <item>
      <title>How do I change the Y axis on proc lifetest?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-Y-axis-on-proc-lifetest/m-p/318673#M11164</link>
      <description>&lt;P&gt;I am using proc lifetest to create survival plots. I want to change the minimum on the y-axis from 0 to, say, 0.5. I have not had success following the SAS documentation and I am not well versed in proc template. I have tried running this proc template and then running my lifetest code but I do not quite understand how to get this template "into" the lifetest procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please advise?? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;/P&gt;&lt;P&gt;&amp;nbsp;define statgraph Stat.Lifetest.Graphics.ProductLimitSurvival;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;begingraph;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;layout overlay /&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;yaxisopts=(label="Incidence of DM" linearopts=(viewmin=0.5 viewmax=1 tickvaluelist=(0.5 0.6 0.7 0.8 0.9 1.0)));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;endlayout;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;endgraph;&lt;BR /&gt;&amp;nbsp;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;proc lifetest data=dm_analysis&amp;nbsp; method=lt plots=survival intervals=1 to 10 by 1;&lt;BR /&gt;&amp;nbsp;time dm_survt_yr*diabetes(0);&lt;BR /&gt;&amp;nbsp;strata M_cohort;&lt;BR /&gt;&amp;nbsp;where casecon in (0,1) and prev_diabetes=0 and dm_survt_flag=0 and age_20150101 ge 18;&amp;nbsp;&lt;BR /&gt;run;&lt;BR /&gt;ods graphics off;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 19:03:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-Y-axis-on-proc-lifetest/m-p/318673#M11164</guid>
      <dc:creator>RebN</dc:creator>
      <dc:date>2016-12-13T19:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the Y axis on proc lifetest?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-Y-axis-on-proc-lifetest/m-p/318679#M11165</link>
      <description>&lt;P&gt;If you submit this statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods path show;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does it say in your log?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 19:35:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-Y-axis-on-proc-lifetest/m-p/318679#M11165</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-12-13T19:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the Y axis on proc lifetest?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-Y-axis-on-proc-lifetest/m-p/318680#M11166</link>
      <description>&lt;P&gt;Following that statement, the log is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6900&amp;nbsp; ods path show;&lt;BR /&gt;Current ODS PATH list is:&lt;/P&gt;&lt;P&gt;1. SASUSER.TEMPLAT(UPDATE)&lt;BR /&gt;2. SASHELP.TMPLMST(READ)&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 19:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-Y-axis-on-proc-lifetest/m-p/318680#M11166</guid>
      <dc:creator>RebN</dc:creator>
      <dc:date>2016-12-13T19:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the Y axis on proc lifetest?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-Y-axis-on-proc-lifetest/m-p/319337#M11175</link>
      <description>&lt;P&gt;First, set ODS TRACE ON; and run PROC LIFETEST with the plot you want. &amp;nbsp;This will list the template(s) used in the log. &amp;nbsp;Then, source the template to a .sas file, and open it in the program Editor. &amp;nbsp;This will show you the GTL code. &amp;nbsp;Add the proc template; run; around the template code. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, change the yaxis viewmin=0.5 in both places in the code. &amp;nbsp;Compile the template which will save it to your sasuser.templat itemstore. &amp;nbsp;Now, rerun proc lifetest, and it should use this new template from sasuser&amp;nbsp;for all subsequent runs of proc lifetese. &amp;nbsp;When you no longer want this modified template, delete it from sasuser (&lt;STRONG&gt;but not from sashelp&lt;/STRONG&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the modified output. &amp;nbsp;&lt;STRONG&gt;Note y-axis.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6392i0957A598EE7BFF24/image-size/medium?v=v2&amp;amp;px=-1" border="0" alt="SurvivalPlot_Custom.png" title="SurvivalPlot_Custom.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 17:47:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-Y-axis-on-proc-lifetest/m-p/319337#M11175</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-12-15T17:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the Y axis on proc lifetest?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-Y-axis-on-proc-lifetest/m-p/874173#M23769</link>
      <description>&lt;P&gt;Hi Jay, thank you very much! I spent so much time following another tutorial but didn't work out for me, and your answer helped me out right away!&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 16:33:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-Y-axis-on-proc-lifetest/m-p/874173#M23769</guid>
      <dc:creator>Karen521</dc:creator>
      <dc:date>2023-05-05T16:33:29Z</dc:date>
    </item>
  </channel>
</rss>

