<?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: median survival not reached in proc lifetest when there are only 2 patients and one had event in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/median-survival-not-reached-in-proc-lifetest-when-there-are-only/m-p/856575#M42352</link>
    <description>&lt;P&gt;This is a general situation: if we have even number of patients, half of them had events first, and rest of them censored and censored time later than all event time, in this case, median survival will be missing (median not reached).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure how to explain this.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 02:55:47 GMT</pubDate>
    <dc:creator>fengyuwuzu</dc:creator>
    <dc:date>2023-02-01T02:55:47Z</dc:date>
    <item>
      <title>median survival not reached in proc lifetest when there are only 2 patients and one had event</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/median-survival-not-reached-in-proc-lifetest-when-there-are-only/m-p/856569#M42350</link>
      <description>&lt;P&gt;I have a subgroup with only 2 patients. One patient had event and the other one censored. Since there are only two patients and one had event, the median survival time would be the when the patient had event - at that time, survival rate reached 50%.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the median survival from Proc Lifetest is missing, which means not reached.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does any one has an explanation on this? Below is a dummy data set and a simple program for testing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data test;
input id aval cnsr;
datalines;
1 2.4 0
2 3.9 1
;
run;

ods select none;
proc lifetest data=test;
ods output means = mean_surv quartiles= median_surv;
time aval * cnsr(1);
run;
ods select all;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Feb 2023 02:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/median-survival-not-reached-in-proc-lifetest-when-there-are-only/m-p/856569#M42350</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2023-02-01T02:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: median survival not reached in proc lifetest when there are only 2 patients and one had event</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/median-survival-not-reached-in-proc-lifetest-when-there-are-only/m-p/856572#M42351</link>
      <description>&lt;P&gt;I tried with 4 patients, 2 had events, and 2 censored later than event time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, median survival is also missing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input id aval cnsr;
datalines;
1 2.4 0
2 3.4 0
3 4.2 1
4 5.4 1
;
run;
proc lifetest data=test method=km;
time aval * cnsr(1);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;6 patients, with half events and half censored, still the same.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input id aval cnsr;
datalines;
1 2.4 0
2 3.4 0
3 4.2 0
4 5.4 1
5 5.5 1
6 6.0 1
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Feb 2023 02:47:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/median-survival-not-reached-in-proc-lifetest-when-there-are-only/m-p/856572#M42351</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2023-02-01T02:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: median survival not reached in proc lifetest when there are only 2 patients and one had event</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/median-survival-not-reached-in-proc-lifetest-when-there-are-only/m-p/856575#M42352</link>
      <description>&lt;P&gt;This is a general situation: if we have even number of patients, half of them had events first, and rest of them censored and censored time later than all event time, in this case, median survival will be missing (median not reached).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure how to explain this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 02:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/median-survival-not-reached-in-proc-lifetest-when-there-are-only/m-p/856575#M42352</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2023-02-01T02:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: median survival not reached in proc lifetest when there are only 2 patients and one had event</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/median-survival-not-reached-in-proc-lifetest-when-there-are-only/m-p/856913#M42381</link>
      <description>&lt;P&gt;I contacted SAS tech support, and got the answer:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs2654ae3a"&gt;&lt;SPAN class="cscb8a910d1"&gt;&lt;SPAN&gt;I think it's because your survival function never drops below 0.5 is why there is no median computed. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs2654ae3a"&gt;&lt;SPAN class="cscb8a910d1"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs2654ae3a"&gt;&lt;SPAN class="cscb8a910d1"&gt;&lt;SPAN&gt;Just because half the patients have had an event doesn't mean the median has been reached. &amp;nbsp;It depends on the computed survival function. &amp;nbsp;&amp;nbsp;The median is the first time at which the survival function goes below S(t) = 0.5. &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 18:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/median-survival-not-reached-in-proc-lifetest-when-there-are-only/m-p/856913#M42381</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2023-02-02T18:40:00Z</dc:date>
    </item>
  </channel>
</rss>

