<?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 to make x-axis and y-axis meet at (0,0) using proc lifetest in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/845135#M334094</link>
    <description>&lt;P&gt;Apologies for not responding. I ran your code with the following proc lifetest at the end, and the axes still came out as desired. Did you ever figure out the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data toplot;
  set sashelp.BMT;
  T = T / 200;
run;

proc lifetest data=toplot plots=survival(cb=hw test) notable;
  time T * Status(0);
  strata Group;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mtnbikerjoshua_1-1668787123215.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77450i14F87B72D7A23B19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mtnbikerjoshua_1-1668787123215.png" alt="mtnbikerjoshua_1-1668787123215.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2022 16:02:41 GMT</pubDate>
    <dc:creator>mtnbikerjoshua</dc:creator>
    <dc:date>2022-11-18T16:02:41Z</dc:date>
    <item>
      <title>How to make x-axis and y-axis meet at (0,0) using proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/810834#M319770</link>
      <description>&lt;P&gt;I use Proc Lifetest to create KM curves by using SAS macro but I cannot find a easy way to make x-axis and y-axis meet at (0,0) to the bottom left corner using lifetest and sas macro. I would not use sgplot to make it. Many thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Figure found online" style="width: 666px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71028iFEB14A560C966C25/image-size/large?v=v2&amp;amp;px=999" role="button" title="images_kmartick.png" alt="Figure found online" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Figure found online&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 18:28:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/810834#M319770</guid>
      <dc:creator>SeaMoon_168</dc:creator>
      <dc:date>2022-04-30T18:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to make x-axis and y-axis meet at (0,0) using proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/810836#M319772</link>
      <description>&lt;P&gt;&lt;A href="https://support.sas.com/documentation/onlinedoc/stat/151/kaplan.pdf" target="_blank"&gt;https://support.sas.com/documentation/onlinedoc/stat/151/kaplan.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Search for&lt;/P&gt;
&lt;P&gt;%let yoptions=&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let xoptions=.&lt;/P&gt;
&lt;P&gt;You will see several examples and general info.&lt;/P&gt;
&lt;P&gt;Next, look at page 899.&lt;/P&gt;
&lt;P&gt;Now try to modify the example to specify offsetmin= instead of the options in that example.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 18:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/810836#M319772</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2022-04-30T18:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make x-axis and y-axis meet at (0,0) using proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/810851#M319775</link>
      <description>&lt;P&gt;Thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added&amp;nbsp;offsetmin=0 to xOptions and yOptions. Then y-axis starts from 0 a the bottom left corner but x-axis still does Not start from 0 (shown below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sample.png" style="width: 576px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71032i2F1E4FD0F727802D/image-size/large?v=v2&amp;amp;px=999" role="button" title="sample.png" alt="sample.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 22:17:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/810851#M319775</guid>
      <dc:creator>SeaMoon_168</dc:creator>
      <dc:date>2022-04-30T22:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to make x-axis and y-axis meet at (0,0) using proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/811294#M319979</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/382088"&gt;@SeaMoon_168&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code, copied right out of the guide linked by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16777"&gt;@WarrenKuhfeld&lt;/a&gt;,&amp;nbsp;works for me in SAS Enterprise Guide&amp;nbsp;7.15 HF8 (7.100.5.6214) (32-bit). If it still isn't working for you, you might need to provide more details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sas"&gt;ods graphics on;


data _null_;
%let url = //support.sas.com/documentation/onlinedoc/stat/ex_code/151;
infile "http:&amp;amp;url/templft.html" device=url;
file 'macros.tmp';
retain pre 0;
input;
_infile_ = tranwrd(_infile_, '&amp;amp;amp;', '&amp;amp;');
_infile_ = tranwrd(_infile_, '&amp;amp;lt;' , '&amp;lt;');
if index(_infile_, '&amp;lt;/pre&amp;gt;') then pre = 0;
if pre then put _infile_;
if index(_infile_, '&amp;lt;pre&amp;gt;') then pre = 1;
run;
%inc 'macros.tmp' / nosource;


%ProvideSurvivalMacros

%let yOptions = offsetmin=0;
%let xOptions = offsetmin=0;

%CompileSurvivalTemplates

proc lifetest data=sashelp.BMT plots=survival(cb=hw test) notable;
  time T * Status(0);
  strata Group;
run;&lt;/LI-CODE&gt;&lt;P&gt;That code produces the following output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mtnbikerjoshua_2-1651601773601.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71122i1A10E26F76538A43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mtnbikerjoshua_2-1651601773601.png" alt="mtnbikerjoshua_2-1651601773601.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 18:20:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/811294#M319979</guid>
      <dc:creator>mtnbikerjoshua</dc:creator>
      <dc:date>2022-05-03T18:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to make x-axis and y-axis meet at (0,0) using proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/811320#M319985</link>
      <description>&lt;P&gt;Thank you for your reply. Shall I just copy and use the same code between "ods graphics on;" and "%CompileSurvivalTemplates" without any changes? But it does not work ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 21:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/811320#M319985</guid>
      <dc:creator>SeaMoon_168</dc:creator>
      <dc:date>2022-05-03T21:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to make x-axis and y-axis meet at (0,0) using proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/811345#M319998</link>
      <description>Can you post example code that will reproduce the problem?</description>
      <pubDate>Tue, 03 May 2022 23:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/811345#M319998</guid>
      <dc:creator>mtnbikerjoshua</dc:creator>
      <dc:date>2022-05-03T23:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to make x-axis and y-axis meet at (0,0) using proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/811352#M320001</link>
      <description>&lt;P&gt;Here is my code with adding your code at the beginning. Thanks.&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;%let url = //support.sas.com/documentation/onlinedoc/stat/ex_code/151;&lt;BR /&gt;infile "http:&amp;amp;url/templft.html" device=url;&lt;BR /&gt;file 'macros.tmp';&lt;BR /&gt;retain pre 0;&lt;BR /&gt;input;&lt;BR /&gt;_infile_ = tranwrd(_infile_, '&amp;amp;amp;', '&amp;amp;');&lt;BR /&gt;_infile_ = tranwrd(_infile_, '&amp;amp;lt;' , '&amp;lt;');&lt;BR /&gt;if index(_infile_, '&amp;lt;/pre&amp;gt;') then pre = 0;&lt;BR /&gt;if pre then put _infile_;&lt;BR /&gt;if index(_infile_, '&amp;lt;pre&amp;gt;') then pre = 1;&lt;BR /&gt;run;&lt;BR /&gt;%inc 'macros.tmp' / nosource;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%inc "D:\XXX\KMmacros.sas";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%ProvideSurvivalMacros&lt;BR /&gt;%let LegendOpts = ;&lt;/P&gt;&lt;P&gt;%let tatters = textattrs=(size=12pt family='Times New Roman');&lt;BR /&gt;%let TitleText0 = "XXX";&amp;nbsp;&lt;BR /&gt;%let TitleText1 = &amp;amp;titletext0 " for " STRATUMID/&amp;amp;tatters;&lt;BR /&gt;%let TitleText2 = &amp;amp;titletext0/&amp;amp;tatters;&lt;BR /&gt;%let ntitles=1;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%let yOptions = offsetmin=0&lt;BR /&gt;label="XXX"&lt;BR /&gt;labelattrs=(size=12pt family='Times New Roman')&lt;BR /&gt;tickvalueattrs=(size=12pt family='Times New Roman')&lt;BR /&gt;linearopts=(viewmin=0 viewmax=1&lt;BR /&gt;tickvaluelist=(0 .2 .4 .6 .8 1));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let xOptions = offsetmin=0&lt;BR /&gt;shortlabel=XNAME&lt;BR /&gt;labelattrs=(size=12pt family='Times New Roman')&lt;BR /&gt;tickvalueattrs=(size=12pt family='Times New Roman')&lt;BR /&gt;linearopts=(viewmin=0 viewmax=2&lt;BR /&gt;tickvaluelist=(0 .5 1 1.5 2));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let AtRiskOpts = labelattrs=(family='Times New Roman' size=12pt)&lt;BR /&gt;valueattrs=(family='Times New Roman' size=12pt);&lt;/P&gt;&lt;P&gt;%CompileSurvivalTemplates&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 02:07:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/811352#M320001</guid>
      <dc:creator>SeaMoon_168</dc:creator>
      <dc:date>2022-05-04T02:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to make x-axis and y-axis meet at (0,0) using proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/845135#M334094</link>
      <description>&lt;P&gt;Apologies for not responding. I ran your code with the following proc lifetest at the end, and the axes still came out as desired. Did you ever figure out the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data toplot;
  set sashelp.BMT;
  T = T / 200;
run;

proc lifetest data=toplot plots=survival(cb=hw test) notable;
  time T * Status(0);
  strata Group;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mtnbikerjoshua_1-1668787123215.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77450i14F87B72D7A23B19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mtnbikerjoshua_1-1668787123215.png" alt="mtnbikerjoshua_1-1668787123215.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 16:02:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-x-axis-and-y-axis-meet-at-0-0-using-proc-lifetest/m-p/845135#M334094</guid>
      <dc:creator>mtnbikerjoshua</dc:creator>
      <dc:date>2022-11-18T16:02:41Z</dc:date>
    </item>
  </channel>
</rss>

