<?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 How to change interval for x-axis in the KM plot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-interval-for-x-axis-in-the-KM-plot/m-p/885362#M349839</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been struggling with this problem for a while.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run the PROC LIFETEST procedure below to get the KM plot. See the plot in the attachement. However, you will find that the time points along the x-axis are 0, 2.5, 5, 7.5, 9, and 12.5. But I want the time interval to be 3, which can made the time points to be 0,3, 6, 9, 12 and 15 so that the time points along x-axis is same as the time points for the number of at risk listing...I tried many options, even trying to revise PROC TEMPLATE. But none of them works......Does any one have resolved similar problem? Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods output Survivalplot = SurvivalPlotData;
ods graphics on;
proc lifetest data=adtte1 plots=survival(atrisk=0 to 15 by 3);
time aval*cnsr(1);
strata trtp/test=logrank adjust=sidak;
run;
ods graphics off;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skyez_0-1689715351716.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85905iA95A777F2B63404B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Skyez_0-1689715351716.png" alt="Skyez_0-1689715351716.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 21:23:29 GMT</pubDate>
    <dc:creator>Skyez</dc:creator>
    <dc:date>2023-07-18T21:23:29Z</dc:date>
    <item>
      <title>How to change interval for x-axis in the KM plot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-interval-for-x-axis-in-the-KM-plot/m-p/885362#M349839</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been struggling with this problem for a while.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run the PROC LIFETEST procedure below to get the KM plot. See the plot in the attachement. However, you will find that the time points along the x-axis are 0, 2.5, 5, 7.5, 9, and 12.5. But I want the time interval to be 3, which can made the time points to be 0,3, 6, 9, 12 and 15 so that the time points along x-axis is same as the time points for the number of at risk listing...I tried many options, even trying to revise PROC TEMPLATE. But none of them works......Does any one have resolved similar problem? Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods output Survivalplot = SurvivalPlotData;
ods graphics on;
proc lifetest data=adtte1 plots=survival(atrisk=0 to 15 by 3);
time aval*cnsr(1);
strata trtp/test=logrank adjust=sidak;
run;
ods graphics off;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skyez_0-1689715351716.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85905iA95A777F2B63404B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Skyez_0-1689715351716.png" alt="Skyez_0-1689715351716.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 21:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-interval-for-x-axis-in-the-KM-plot/m-p/885362#M349839</guid>
      <dc:creator>Skyez</dc:creator>
      <dc:date>2023-07-18T21:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to change interval for x-axis in the KM plot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-interval-for-x-axis-in-the-KM-plot/m-p/885364#M349840</link>
      <description>&lt;P&gt;ATRISK &amp;lt;(options)&amp;gt; &amp;lt;=number-list&amp;gt; displays the numbers of subjects at risk at the given times. You can specify the following options: ATRISKTICK ATRISKLABEL guarantees that tick values are shown on the time axis for those times when the numbers of subjects at risk are displayed. If this option is not specified, you might not be able to tell at exactly which times the number of subjects at risk are displayed. If the ATRISKTICKONLY option is also specified, it takes precedence over the ATRISKTICK option. ATRISKTICKONLY specifies that tick values on the time axis be shown only at the times that are given in the ATRISK= list. If the ATRISKTICK option is also specified, it is ignored; that is, ATRISKTICKONLY takes precedence over ATRISKTICK.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 21:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-interval-for-x-axis-in-the-KM-plot/m-p/885364#M349840</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2023-07-18T21:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to change interval for x-axis in the KM plot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-interval-for-x-axis-in-the-KM-plot/m-p/885367#M349843</link>
      <description>It worked, thanks!!</description>
      <pubDate>Tue, 18 Jul 2023 21:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-interval-for-x-axis-in-the-KM-plot/m-p/885367#M349843</guid>
      <dc:creator>Skyez</dc:creator>
      <dc:date>2023-07-18T21:37:54Z</dc:date>
    </item>
  </channel>
</rss>

