<?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: Proc lIfetest : Different results from product-limit-estimate table and atrisk in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-lIfetest-Different-results-from-product-limit-estimate/m-p/646998#M31057</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183242"&gt;@riyaaora275&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your survival times are discrete. The numbers of subjects at risk in the graph (denoted by&amp;nbsp;&lt;EM&gt;Y&lt;/EM&gt;&lt;SUB&gt;i&lt;/SUB&gt; in&lt;SPAN&gt;&amp;nbsp;section&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_lifetest_details03.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;Breslow, Fleming-Harrington, and Kaplan-Meier Methods&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;of the PROC LIFETEST documentation)&amp;nbsp;&lt;/SPAN&gt;are counted "&lt;SPAN&gt;&lt;EM&gt;just prior to&lt;/EM&gt;" the respective time points, whereas the columns "Number Left" and "Number Failed" in the table "Product-Limit Survival Estimates" (i.e., variables &lt;FONT face="courier new,courier"&gt;Left&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;Failed&lt;/FONT&gt; in your dataset &lt;FONT face="courier new,courier"&gt;sds&lt;/FONT&gt;) take the events (failures or censoring) &lt;EM&gt;at&lt;/EM&gt; the respective time points already into account (event by event) -- not at time 0, though, when using the TIMELIST= option. So the small differences are the numbers of subjects whose event times&amp;nbsp;&lt;EM&gt;equal&lt;/EM&gt;&amp;nbsp;0, 100, 200, etc., respectively.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 08:47:54 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2020-05-12T08:47:54Z</dc:date>
    <item>
      <title>Proc lIfetest : Different results from product-limit-estimate table and atrisk</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-lIfetest-Different-results-from-product-limit-estimate/m-p/646991#M31056</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code -&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output productlimitestimates = sds ;


proc lifetest data=graph2_B_G  timelist= 0 100 200 300 400 500 600 700 800 900 1000 plots=(survival( atrisk=0 to 1000 by 100 ) )maxtime = 1000;
time time*status(0);
strata drg_class_detail;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The numbers that i get from the product-limit-estimate table&amp;nbsp;(number surviving) are not the same as the numbers i get on the graph with the atrisk number. Can anyone please help explain why that is the case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the difference in the calculation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;even the numbers for the time-0 are different&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Atrisk&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Product-lim-estimate&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;time&lt;/TD&gt;&lt;TD&gt;group1&lt;/TD&gt;&lt;TD&gt;group2&lt;/TD&gt;&lt;TD&gt;group1&lt;/TD&gt;&lt;TD&gt;group2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;2050&lt;/TD&gt;&lt;TD&gt;2050&lt;/TD&gt;&lt;TD&gt;2043&lt;/TD&gt;&lt;TD&gt;2048&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;1454&lt;/TD&gt;&lt;TD&gt;1481&lt;/TD&gt;&lt;TD&gt;1451&lt;/TD&gt;&lt;TD&gt;1480&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;1186&lt;/TD&gt;&lt;TD&gt;1217&lt;/TD&gt;&lt;TD&gt;1182&lt;/TD&gt;&lt;TD&gt;1213&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;894&lt;/TD&gt;&lt;TD&gt;848&lt;/TD&gt;&lt;TD&gt;892&lt;/TD&gt;&lt;TD&gt;845&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 07:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-lIfetest-Different-results-from-product-limit-estimate/m-p/646991#M31056</guid>
      <dc:creator>riyaaora275</dc:creator>
      <dc:date>2020-05-12T07:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc lIfetest : Different results from product-limit-estimate table and atrisk</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-lIfetest-Different-results-from-product-limit-estimate/m-p/646998#M31057</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183242"&gt;@riyaaora275&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your survival times are discrete. The numbers of subjects at risk in the graph (denoted by&amp;nbsp;&lt;EM&gt;Y&lt;/EM&gt;&lt;SUB&gt;i&lt;/SUB&gt; in&lt;SPAN&gt;&amp;nbsp;section&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_lifetest_details03.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;Breslow, Fleming-Harrington, and Kaplan-Meier Methods&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;of the PROC LIFETEST documentation)&amp;nbsp;&lt;/SPAN&gt;are counted "&lt;SPAN&gt;&lt;EM&gt;just prior to&lt;/EM&gt;" the respective time points, whereas the columns "Number Left" and "Number Failed" in the table "Product-Limit Survival Estimates" (i.e., variables &lt;FONT face="courier new,courier"&gt;Left&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;Failed&lt;/FONT&gt; in your dataset &lt;FONT face="courier new,courier"&gt;sds&lt;/FONT&gt;) take the events (failures or censoring) &lt;EM&gt;at&lt;/EM&gt; the respective time points already into account (event by event) -- not at time 0, though, when using the TIMELIST= option. So the small differences are the numbers of subjects whose event times&amp;nbsp;&lt;EM&gt;equal&lt;/EM&gt;&amp;nbsp;0, 100, 200, etc., respectively.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 08:47:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-lIfetest-Different-results-from-product-limit-estimate/m-p/646998#M31057</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-05-12T08:47:54Z</dc:date>
    </item>
  </channel>
</rss>

