<?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 scaling of the x-axis for the survival curves in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/scaling-of-the-x-axis-for-the-survival-curves/m-p/849143#M335724</link>
    <description>&lt;P&gt;Hello, I am having some difficulties with the scaling of my x-axis for a survival curve.&lt;/P&gt;&lt;P&gt;Here is the lifetest procedure used and the results. I would like to scale from 0 to 15 by 5. I have already used xOptions without success and I can't find any other solution on the sas users forum. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc lifetest data = &amp;amp;data outsurv = tx method=km plots=survival(atrisk=0 to 15 by 5 outside(0.1)) ;&lt;BR /&gt;time &amp;amp;time*event_&amp;amp;time(0);&lt;BR /&gt;strata &amp;amp;arm;&lt;BR /&gt;ods output Quartiles = med (where=(Percent=50)) CensoredSummary = event HomTests = pv ;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2022 16:36:51 GMT</pubDate>
    <dc:creator>clementinelrx</dc:creator>
    <dc:date>2022-12-12T16:36:51Z</dc:date>
    <item>
      <title>scaling of the x-axis for the survival curves</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scaling-of-the-x-axis-for-the-survival-curves/m-p/849143#M335724</link>
      <description>&lt;P&gt;Hello, I am having some difficulties with the scaling of my x-axis for a survival curve.&lt;/P&gt;&lt;P&gt;Here is the lifetest procedure used and the results. I would like to scale from 0 to 15 by 5. I have already used xOptions without success and I can't find any other solution on the sas users forum. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc lifetest data = &amp;amp;data outsurv = tx method=km plots=survival(atrisk=0 to 15 by 5 outside(0.1)) ;&lt;BR /&gt;time &amp;amp;time*event_&amp;amp;time(0);&lt;BR /&gt;strata &amp;amp;arm;&lt;BR /&gt;ods output Quartiles = med (where=(Percent=50)) CensoredSummary = event HomTests = pv ;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 16:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scaling-of-the-x-axis-for-the-survival-curves/m-p/849143#M335724</guid>
      <dc:creator>clementinelrx</dc:creator>
      <dc:date>2022-12-12T16:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: scaling of the x-axis for the survival curves</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scaling-of-the-x-axis-for-the-survival-curves/m-p/849215#M335741</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You&lt;/SPAN&gt;&lt;SPAN&gt; can&lt;/SPAN&gt;&lt;SPAN&gt; achieve&lt;/SPAN&gt;&lt;SPAN&gt; this&lt;/SPAN&gt;&lt;SPAN&gt; by&lt;/SPAN&gt;&lt;SPAN&gt; adding&lt;/SPAN&gt;&lt;SPAN&gt; the&lt;/SPAN&gt;&lt;SPAN&gt; option&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN&gt;axis&lt;/SPAN&gt;&lt;SPAN&gt;=(&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; to&lt;/SPAN&gt;&lt;SPAN&gt; 15&lt;/SPAN&gt;&lt;SPAN&gt; by&lt;/SPAN&gt;&lt;SPAN&gt; 5&lt;/SPAN&gt;&lt;SPAN&gt;)"&lt;/SPAN&gt;&lt;SPAN&gt; to&lt;/SPAN&gt;&lt;SPAN&gt; the&lt;/SPAN&gt;&lt;SPAN&gt; PL&lt;/SPAN&gt;&lt;SPAN&gt;OTS&lt;/SPAN&gt;&lt;SPAN&gt; statement&lt;/SPAN&gt;&lt;SPAN&gt; in&lt;/SPAN&gt;&lt;SPAN&gt; the&lt;/SPAN&gt;&lt;SPAN&gt; PROC&lt;/SPAN&gt;&lt;SPAN&gt; L&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;ET&lt;/SPAN&gt;&lt;SPAN&gt;EST&lt;/SPAN&gt;&lt;SPAN&gt; step&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt; For&lt;/SPAN&gt;&lt;SPAN&gt; example&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;PROC LIFETEST DATA = &amp;amp;data 
    OUTSURV = tx 
    METHOD = KM 
    PLOTS = SURVIVAL(ATRISK = 0 TO 15 BY 5 OUTSIDE(0.1) AXIS=(0 TO 15 BY 5));
    TIME &amp;amp;TIME*EVENT_&amp;amp;TIME(0);
    STRATA &amp;amp;ARM;
    ODS OUTPUT 
        Quartiles = med (WHERE=(Percent=50)) 
        CensoredSummary = event 
        HomTests = pv
    ;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Dec 2022 18:24:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scaling-of-the-x-axis-for-the-survival-curves/m-p/849215#M335741</guid>
      <dc:creator>ger15xxhcker</dc:creator>
      <dc:date>2022-12-12T18:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: scaling of the x-axis for the survival curves</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scaling-of-the-x-axis-for-the-survival-curves/m-p/849223#M335747</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437669"&gt;@clementinelrx&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think using xOptions was a good idea. To test it, I have used&amp;nbsp;a slightly modified version VALUNG1 of the VALUNG dataset from&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_lifetest_examples01.htm" target="_blank" rel="noopener"&gt;Example 76.1 Product-Limit Estimates and Tests of Association&lt;/A&gt; of the PROC LIFETEST documentation&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data valung1;
set valung;
survtime=survtime/50;
event_survtime=1-censor;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;together with the macro variable definitions&lt;/P&gt;
&lt;PRE&gt;%let data=valung1;
%let time=survtime;
%let arm=cell;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, using&lt;/P&gt;
&lt;PRE&gt;%ProvideSurvivalMacros
%let xOptions   = shortlabel=XNAME offsetmin=.05
                  linearopts=(viewmax=&lt;FONT size="4" color="#3366FF"&gt;&lt;STRONG&gt;15&lt;/STRONG&gt;&lt;/FONT&gt; tickvaluelist=&lt;FONT size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;(0 5 10 15)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;
                              tickvaluefitpolicy=XTICKVALFITPOL);
%CompileSurvivalTemplates&lt;/PRE&gt;
&lt;P&gt;(the highlighted values are the changes to the original value of xOptions as found in section&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_kaplan_sect037.htm" target="_blank" rel="noopener"&gt;"The Macro Variables"&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;followed by your PROC LIFETEST code I've got the expected x-axis scaling.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the original templates the scaling would be 0 to &lt;EM&gt;20&lt;/EM&gt; by 5. With the modified &lt;FONT face="courier new,courier"&gt;tickvaluelist=&lt;/FONT&gt; option alone, i.e., using &lt;FONT face="courier new,courier"&gt;viewmax=MAXTIME&lt;/FONT&gt;, the tick mark 20 would be dropped. Adding &lt;FONT face="courier new,courier"&gt;viewmax=15&lt;/FONT&gt; &lt;EM&gt;truncated&lt;/EM&gt; the longest survival curve at x=15+&lt;FONT face="courier new,courier"&gt;offsetmax&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similarly, using&lt;/P&gt;
&lt;PRE&gt;viewmax=&lt;FONT size="4" color="#3366FF"&gt;&lt;STRONG&gt;25&lt;/STRONG&gt;&lt;/FONT&gt; tickvaluelist=&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;(0 5 10 15 20 25)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;the x-axis was &lt;EM&gt;extended&lt;/EM&gt; beyond the largest survival or censoring time in the VALUNG1 data.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 18:51:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scaling-of-the-x-axis-for-the-survival-curves/m-p/849223#M335747</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-12-12T18:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: scaling of the x-axis for the survival curves</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scaling-of-the-x-axis-for-the-survival-curves/m-p/851612#M336613</link>
      <description>Thank you very much for your answer</description>
      <pubDate>Fri, 30 Dec 2022 13:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scaling-of-the-x-axis-for-the-survival-curves/m-p/851612#M336613</guid>
      <dc:creator>clementinelrx</dc:creator>
      <dc:date>2022-12-30T13:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: scaling of the x-axis for the survival curves</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scaling-of-the-x-axis-for-the-survival-curves/m-p/851613#M336614</link>
      <description>Thank you very much for your help</description>
      <pubDate>Fri, 30 Dec 2022 13:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scaling-of-the-x-axis-for-the-survival-curves/m-p/851613#M336614</guid>
      <dc:creator>clementinelrx</dc:creator>
      <dc:date>2022-12-30T13:16:00Z</dc:date>
    </item>
  </channel>
</rss>

