<?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: Calculate Kaplan-Meier (K-M) Estimator without using SAS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Calculate-Kaplan-Meier-K-M-Estimator-without-using-SAS/m-p/632915#M21139</link>
    <description>&lt;P&gt;Your teacher gave you this question to make sure that you understand the principles of the K-M curve. Use your class notes or textbook to construct the table. The data are already sorted, so the first column (Time) is given to you. Use 0/1 in the Event and Censored columns to indicate whether each Time was an observed event (death) or was the result of censoring. Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Mar 2020 11:24:46 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2020-03-18T11:24:46Z</dc:date>
    <item>
      <title>Calculate Kaplan-Meier (K-M) Estimator without using SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Calculate-Kaplan-Meier-K-M-Estimator-without-using-SAS/m-p/632832#M21134</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The survival times (weeks since exposure to death) are: 18, 23, 25, 26, 29*, 30, 30, 31, 31*, 32*&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*starred quantities denote censored observations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Question. Calculate Kaplan-Meier (K-M) Estimator by creating a table including the following columns: Time, Event, Censored, At Risk, and Cumulative Survival.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="yj6qo"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="yj6qo"&gt;Thanks in advance!&lt;/DIV&gt;&lt;DIV class="adL"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Mar 2020 23:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Calculate-Kaplan-Meier-K-M-Estimator-without-using-SAS/m-p/632832#M21134</guid>
      <dc:creator>chinna0369</dc:creator>
      <dc:date>2020-03-17T23:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Kaplan-Meier (K-M) Estimator without using SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Calculate-Kaplan-Meier-K-M-Estimator-without-using-SAS/m-p/632915#M21139</link>
      <description>&lt;P&gt;Your teacher gave you this question to make sure that you understand the principles of the K-M curve. Use your class notes or textbook to construct the table. The data are already sorted, so the first column (Time) is given to you. Use 0/1 in the Event and Censored columns to indicate whether each Time was an observed event (death) or was the result of censoring. Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 11:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Calculate-Kaplan-Meier-K-M-Estimator-without-using-SAS/m-p/632915#M21139</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-03-18T11:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Kaplan-Meier (K-M) Estimator without using SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Calculate-Kaplan-Meier-K-M-Estimator-without-using-SAS/m-p/632924#M21140</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/117414"&gt;@chinna0369&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I fully agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;. Only if you really get stuck, you may peek under the spoiler to find a few hints.&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;P&gt;Start with column "Time": These are the eight distinct values you've already listed (i.e., without the duplicates).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For each of the eight time values enter the number of events (=deaths) in column "Event". Remember that each number without a star in your list corresponds to one death. Apparently, for your data this column will only contain values in {0, 1, 2}.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similarly, populate column "Censored" with the number of times a time value occurs with a star in your list.&amp;nbsp;Apparently, for your data this column will only contain values in {0, 1}.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Column "At Risk" contains the number of subjects who have neither died nor been censored&amp;nbsp;&lt;SPAN&gt;just prior to&amp;nbsp;the respective point in time. That is, at the first time value (18) it's the full number of subjects under study (10). At the second time value (23) the subject who died at time 18 is no longer at risk, hence only 9 are left, and so on. The numbers in this column will be strictly decreasing. The decrement is always the sum of the values in columns "Event" and "Censored" of the previous row.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, compute the Kaplan-Meier estimates. Even if you're not allowed to use &lt;EM&gt;SAS&lt;/EM&gt;, you can still use the &lt;A href="https://support.sas.com/en/documentation.html" target="_blank" rel="noopener"&gt;SAS &lt;EM&gt;documentation&lt;/EM&gt;&lt;/A&gt;. So, for your exercise: open the &lt;A style="background-color: #ffffff;" href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_lifetest_toc.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;documentation of PROC LIFETEST&lt;/A&gt;, click on "&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_lifetest_details.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;Details&lt;/A&gt;", then "&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_lifetest_details02.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;Computational Formulas&lt;/A&gt;" and finally "&lt;A tabindex="0" href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_lifetest_details03.htm&amp;amp;locale=en" data-docset-id="statug" data-docset-version="15.1" data-original-href="statug_lifetest_details03.htm"&gt;Breslow, Fleming-Harrington, and Kaplan-Meier Methods&lt;/A&gt;". The third formula in this subsection tells you how to calculate the Kaplan-Meier&amp;nbsp;&lt;SPAN&gt;estimator Ŝ(t&lt;SUB&gt;i&lt;/SUB&gt;), i.e., column "Cumulative Survival" of your table. The t&lt;SUB&gt;i&lt;/SUB&gt;&amp;nbsp;in the formula are the time values (actually only the event times, but it's no problem that your table contains the censored survival times as well), the d&lt;SUB&gt;i&lt;/SUB&gt; are the numbers of events and the Y&lt;SUB&gt;i&lt;/SUB&gt; are the subjects at risk. So, you have all these in your table already (plus the number of censored subjects, say, c&lt;SUB&gt;i&lt;/SUB&gt;, but these aren't used in the formula). The index i goes from 1 to 8 (or 0 to 8 if you like to insert a row with&amp;nbsp;t&lt;SUB&gt;0&lt;/SUB&gt;=0 and&amp;nbsp;Ŝ(t&lt;SUB&gt;i&lt;/SUB&gt;)=1). For example,&amp;nbsp;Ŝ(t&lt;SUB&gt;1&lt;/SUB&gt;)=1−d&lt;SUB&gt;1&lt;/SUB&gt;/Y&lt;SUB&gt;1&lt;/SUB&gt;=1−1/10=0.9. The subsequent values&amp;nbsp;Ŝ(t&lt;SUB&gt;i&lt;/SUB&gt;), i=2, 3, ...,&amp;nbsp;are obtained by multiplying the previous value Ŝ(t&lt;SUB&gt;i-1&lt;/SUB&gt;) by (1−d&lt;SUB&gt;i&lt;/SUB&gt;/Y&lt;SUB&gt;i&lt;/SUB&gt;). So, the results are decreasing (but not strictly decreasing in cases where d&lt;SUB&gt;i&lt;/SUB&gt;=0).&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI-SPOILER&gt;</description>
      <pubDate>Wed, 18 Mar 2020 11:52:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Calculate-Kaplan-Meier-K-M-Estimator-without-using-SAS/m-p/632924#M21140</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-03-18T11:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Kaplan-Meier (K-M) Estimator without using SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Calculate-Kaplan-Meier-K-M-Estimator-without-using-SAS/m-p/633098#M21146</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thank you for your response. I was little confused at events column. Could you please check my below answer and let me know if anything!&lt;BR /&gt;Time&lt;BR /&gt;(years) # events (dj ) # censored # at risk (nj ) Survival (Sˆ(t)&lt;BR /&gt;18 1 1 10 1-1/10 = 0.9&lt;BR /&gt;23 1 1 9 9/10 * 8/9 = 0.8&lt;BR /&gt;25 1 1 8 9/10 * 8/9*7/8 = 0.7&lt;BR /&gt;26 1 1 7 9/10 * 8/9*7/8*6/7 = 0.6&lt;BR /&gt;29 0 0 5 9/10 * 8/9*7/8*6/7*5/5= 0.6&lt;BR /&gt;30 2 1 4 9/10 * 8/9*7/8*6/7*5/5*2/4 =0.3&lt;BR /&gt;31 1 0 2 9/10 * 8/9*7/8*6/7*5/5*2/4*1/2=0.15&lt;BR /&gt;32 1 0 1 9/10 * 8/9*7/8*6/7*5/5*2/4*1/2*0 = 0&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;Adithya</description>
      <pubDate>Wed, 18 Mar 2020 21:42:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Calculate-Kaplan-Meier-K-M-Estimator-without-using-SAS/m-p/633098#M21146</guid>
      <dc:creator>chinna0369</dc:creator>
      <dc:date>2020-03-18T21:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Kaplan-Meier (K-M) Estimator without using SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Calculate-Kaplan-Meier-K-M-Estimator-without-using-SAS/m-p/633105#M21147</link>
      <description>&lt;UL&gt;
&lt;LI&gt;The unit of the time column is weeks, not years, but the numbers are correct.&lt;/LI&gt;
&lt;LI&gt;The event counts are correct, except for the last one.&lt;/LI&gt;
&lt;LI&gt;The numbers of censored cases are inverted (1 &amp;lt;--&amp;gt; 0).&lt;/LI&gt;
&lt;LI&gt;You should double-check the numbers of subjects at risk starting from t=29.&lt;/LI&gt;
&lt;LI&gt;The last three K-M estimates will change once the corrections are implemented.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 18 Mar 2020 22:45:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Calculate-Kaplan-Meier-K-M-Estimator-without-using-SAS/m-p/633105#M21147</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-03-18T22:45:53Z</dc:date>
    </item>
  </channel>
</rss>

