<?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: Customize vertical axis/survival probability in PROC LIFETEST in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Customize-vertical-axis-survival-probability-in-PROC-LIFETEST/m-p/749006#M36414</link>
    <description>&lt;P&gt;I got it, thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 23:09:44 GMT</pubDate>
    <dc:creator>haoduonge</dc:creator>
    <dc:date>2021-06-18T23:09:44Z</dc:date>
    <item>
      <title>Customize vertical axis/survival probability in PROC LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Customize-vertical-axis-survival-probability-in-PROC-LIFETEST/m-p/748985#M36409</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I see many posts on how to customize the KM graph.&lt;/P&gt;&lt;P&gt;However, I just need the basic one and would like to ask if we can customize the vertical axis within PROC LIFETEST?&lt;/P&gt;&lt;P&gt;The codes below will give me a full graph of the survival probability from 0 to 1.&lt;/P&gt;&lt;P&gt;Is there anyway to limit it to 0.8&amp;nbsp; to 1? That will zoom out the graph.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Hao&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS html; ODS graphics on;&lt;/P&gt;&lt;P&gt;PROC LIFETEST data=table2 plots=survival (nocensor test atrisk(outside maxlen=13)=0 to 9 by 1) maxtime=9;&lt;/P&gt;&lt;P&gt;TIME time*outcome (0);&lt;/P&gt;&lt;P&gt;STRATA TREATMENT /test=logrank order=internal adjust=sidak;&lt;/P&gt;&lt;P&gt;LABEL TREATMENT ='Legend:';&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;ODS graphics off;&lt;/P&gt;&lt;P&gt;ODS html close;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 20:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Customize-vertical-axis-survival-probability-in-PROC-LIFETEST/m-p/748985#M36409</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2021-06-18T20:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Customize vertical axis/survival probability in PROC LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Customize-vertical-axis-survival-probability-in-PROC-LIFETEST/m-p/748991#M36410</link>
      <description>&lt;P&gt;Have you tried changing the viewmin/viewmax values or the tickvalue list as illustrated in this example from the documentation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_010/statug/statug_kaplan_sect018.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/v_010/statug/statug_kaplan_sect018.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically you just need to add the following before your code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%ProvideSurvivalMacros;
%let yOptions = label="Survival"
                linearopts=(viewmin=0.8 viewmax=1
                            tickvaluelist=(0.8 .9 1));

%CompileSurvivalTemplates;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138243"&gt;@haoduonge&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I see many posts on how to customize the KM graph.&lt;/P&gt;
&lt;P&gt;However, I just need the basic one and would like to ask if we can customize the vertical axis within PROC LIFETEST?&lt;/P&gt;
&lt;P&gt;The codes below will give me a full graph of the survival probability from 0 to 1.&lt;/P&gt;
&lt;P&gt;Is there anyway to limit it to 0.8&amp;nbsp; to 1? That will zoom out the graph.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;Hao&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS html; ODS graphics on;&lt;/P&gt;
&lt;P&gt;PROC LIFETEST data=table2 plots=survival (nocensor test atrisk(outside maxlen=13)=0 to 9 by 1) maxtime=9;&lt;/P&gt;
&lt;P&gt;TIME time*outcome (0);&lt;/P&gt;
&lt;P&gt;STRATA TREATMENT /test=logrank order=internal adjust=sidak;&lt;/P&gt;
&lt;P&gt;LABEL TREATMENT ='Legend:';&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;ODS graphics off;&lt;/P&gt;
&lt;P&gt;ODS html close;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 20:42:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Customize-vertical-axis-survival-probability-in-PROC-LIFETEST/m-p/748991#M36410</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-18T20:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Customize vertical axis/survival probability in PROC LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Customize-vertical-axis-survival-probability-in-PROC-LIFETEST/m-p/749005#M36413</link>
      <description>&lt;P&gt;It is so strange, I add that before my codes and the figure does not change a bit.&lt;/P&gt;&lt;P&gt;Hao&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 22:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Customize-vertical-axis-survival-probability-in-PROC-LIFETEST/m-p/749005#M36413</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2021-06-18T22:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Customize vertical axis/survival probability in PROC LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Customize-vertical-axis-survival-probability-in-PROC-LIFETEST/m-p/749006#M36414</link>
      <description>&lt;P&gt;I got it, thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 23:09:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Customize-vertical-axis-survival-probability-in-PROC-LIFETEST/m-p/749006#M36414</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2021-06-18T23:09:44Z</dc:date>
    </item>
  </channel>
</rss>

