<?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 Why was the output different after adding disply options to PROC LIFETEST? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-was-the-output-different-after-adding-disply-options-to-PROC/m-p/779078#M248095</link>
    <description>&lt;P&gt;Hi. My task is to analyze a very simple and straightforward cancer registry. My output was significantly different after changing the option, even though in my opinion it was just for display purposes. Below I have included both code and their outputs for your reference. Could you please explain what happened and which version is better? I really appreciate your time and help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Version one&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc lifetest data=registry atrisk plot=(survival (atrisk=0 to 5 by 1 atrisktickonly)) 
			  outsurv=ci95 maxtime=5 timelist=(0 to 5 by 1) reduceout; 
	time survyr*vital(1); 
	strata rgroup1/ test=all;
	label survyr ='Time in years' rgroup1="race"; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oddsratio_2-1636360135988.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65470iA6A5335803901510/image-size/medium?v=v2&amp;amp;px=400" role="button" title="oddsratio_2-1636360135988.png" alt="oddsratio_2-1636360135988.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Version two&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;test&lt;/EM&gt; and &lt;EM&gt;outside&lt;/EM&gt; was added in the first for plot&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc lifetest data=registry atrisk plot=(survival ( test atrisk=0 to 5 by 1 atrisktickonly outside)) 
			  timelist=(0 to 5 by 1) outsurv=ci95 maxtime=5 timelist=(0 to 5 by 1) reduceout; 
	time survyr*vital(1); 
	strata rgroup1/ test=all;
	label survyr ='Time in years' rgroup1="race"; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oddsratio_1-1636360072202.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65469i4F7635080CD78F87/image-size/medium?v=v2&amp;amp;px=400" role="button" title="oddsratio_1-1636360072202.png" alt="oddsratio_1-1636360072202.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Nov 2021 08:30:02 GMT</pubDate>
    <dc:creator>oddsratio</dc:creator>
    <dc:date>2021-11-08T08:30:02Z</dc:date>
    <item>
      <title>Why was the output different after adding disply options to PROC LIFETEST?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-was-the-output-different-after-adding-disply-options-to-PROC/m-p/779078#M248095</link>
      <description>&lt;P&gt;Hi. My task is to analyze a very simple and straightforward cancer registry. My output was significantly different after changing the option, even though in my opinion it was just for display purposes. Below I have included both code and their outputs for your reference. Could you please explain what happened and which version is better? I really appreciate your time and help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Version one&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc lifetest data=registry atrisk plot=(survival (atrisk=0 to 5 by 1 atrisktickonly)) 
			  outsurv=ci95 maxtime=5 timelist=(0 to 5 by 1) reduceout; 
	time survyr*vital(1); 
	strata rgroup1/ test=all;
	label survyr ='Time in years' rgroup1="race"; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oddsratio_2-1636360135988.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65470iA6A5335803901510/image-size/medium?v=v2&amp;amp;px=400" role="button" title="oddsratio_2-1636360135988.png" alt="oddsratio_2-1636360135988.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Version two&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;test&lt;/EM&gt; and &lt;EM&gt;outside&lt;/EM&gt; was added in the first for plot&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc lifetest data=registry atrisk plot=(survival ( test atrisk=0 to 5 by 1 atrisktickonly outside)) 
			  timelist=(0 to 5 by 1) outsurv=ci95 maxtime=5 timelist=(0 to 5 by 1) reduceout; 
	time survyr*vital(1); 
	strata rgroup1/ test=all;
	label survyr ='Time in years' rgroup1="race"; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oddsratio_1-1636360072202.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65469i4F7635080CD78F87/image-size/medium?v=v2&amp;amp;px=400" role="button" title="oddsratio_1-1636360072202.png" alt="oddsratio_1-1636360072202.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 08:30:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-was-the-output-different-after-adding-disply-options-to-PROC/m-p/779078#M248095</guid>
      <dc:creator>oddsratio</dc:creator>
      <dc:date>2021-11-08T08:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why was the output different after adding disply options to PROC LIFETEST?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-was-the-output-different-after-adding-disply-options-to-PROC/m-p/779084#M248099</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/400431"&gt;@oddsratio&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can reproduce the issue using SASHELP sample data (as in&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_code_liftex2.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_code_liftex2.htm&lt;/A&gt;), but only after modifying the template as described in&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_kaplan_sect016.htm" target="_blank" rel="noopener"&gt;Customizing the Kaplan-Meier Survival Plot&lt;/A&gt;. Specifically, I had to set the VIEWMIN= option to 0.5 in order to get a y-axis similar to that in your plots:&lt;/P&gt;
&lt;PRE&gt;%ProvideSurvivalMacros

%let yOptions = linearopts=(viewmin=&lt;FONT color="#FF0000"&gt;0.5&lt;/FONT&gt; viewmax=1);

%CompileSurvivalTemplates&lt;/PRE&gt;
&lt;P&gt;Did you modify the template in a similar way? Using the default &lt;FONT face="courier new,courier"&gt;viewmin=&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/FONT&gt; (or a sufficiently small value &amp;gt;0) should resolve the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 09:45:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-was-the-output-different-after-adding-disply-options-to-PROC/m-p/779084#M248099</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-11-08T09:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why was the output different after adding disply options to PROC LIFETEST?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-was-the-output-different-after-adding-disply-options-to-PROC/m-p/780073#M248514</link>
      <description>&lt;P&gt;Thank you so much for helping me out. You are right! By&amp;nbsp;using the default&amp;nbsp;setting&amp;nbsp;view in=0, the difference was resolved.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Nov 2021 00:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-was-the-output-different-after-adding-disply-options-to-PROC/m-p/780073#M248514</guid>
      <dc:creator>oddsratio</dc:creator>
      <dc:date>2021-11-13T00:20:50Z</dc:date>
    </item>
  </channel>
</rss>

