<?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: The difference of median survival time in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/The-difference-of-median-survival-time/m-p/944044#M47146</link>
    <description>&lt;P&gt;I don't agree with 1).&lt;/P&gt;
&lt;P&gt;But agree with 2) .&lt;/P&gt;
&lt;P&gt;Here is an example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
set sashelp.bmt;
if Group ne 'ALL';
run;


proc quantlife data=have  seed=1268;
class group;
model T*Status(0) = group / quantile=(0.25 0.5);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1726470487019.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100371iFB6A54C1C32A58C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1726470487019.png" alt="Ksharp_0-1726470487019.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Using PROC LIFETEST to check the median of these two groups:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc lifetest data=have;
strata group;
time T*Status(0);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1726470549858.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100372i312011FAA70C964A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1726470549858.png" alt="Ksharp_1-1726470549858.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_2-1726470568649.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100373iC788BDF3D7FE3AAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_2-1726470568649.png" alt="Ksharp_2-1726470568649.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here 183-2204=-2021 . is the same as PROC QUANTLIFE .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 07:12:14 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-09-16T07:12:14Z</dc:date>
    <item>
      <title>The difference of median survival time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-difference-of-median-survival-time/m-p/944022#M47143</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am conducting a survival analysis using proc lifetest to compare two treatments. I need to obtain the difference in median survival times between the two treatments and the corresponding 95% confidence interval. However, the standard output seems to only provide the medians and 95% confidence intervals for each treatment, but not the difference between the treatments. Is there a way to achieve this in SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 03:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-difference-of-median-survival-time/m-p/944022#M47143</guid>
      <dc:creator>Faker</dc:creator>
      <dc:date>2024-09-16T03:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: The difference of median survival time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-difference-of-median-survival-time/m-p/944026#M47144</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1726457631641.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100368i7BA52824ED006075/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1726457631641.png" alt="Ksharp_0-1726457631641.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 03:37:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-difference-of-median-survival-time/m-p/944026#M47144</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-09-16T03:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: The difference of median survival time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-difference-of-median-survival-time/m-p/944035#M47145</link>
      <description>&lt;P&gt;Hi Ksharp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw this example in the document (as shown in the figure below). Since the code performs a log transformation, the estimated coefficient after taking exp should be a ratio rather than a difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask further how to obtain the median difference and its 95% CI in this procedure .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, I have thought of two other ways to handle this. I'm not sure if they are appropriate:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Using the formula provided in the example, first calculate the 50% survival time for both groups and also calculate their 95% CI. The median difference and its 95% CI can be obtained by subtracting the 50% survival times of the two groups.&lt;BR /&gt;&lt;BR /&gt;2. Remove the log transformation from the code. The estimated value obtained will be the difference between the two groups, which would be the median difference.&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="q1.PNG" style="width: 840px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100369i3AE66C22D0E6A5ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="q1.PNG" alt="q1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="q2.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100370i273B64929218E55C/image-size/large?v=v2&amp;amp;px=999" role="button" title="q2.PNG" alt="q2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 06:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-difference-of-median-survival-time/m-p/944035#M47145</guid>
      <dc:creator>Faker</dc:creator>
      <dc:date>2024-09-16T06:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: The difference of median survival time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-difference-of-median-survival-time/m-p/944044#M47146</link>
      <description>&lt;P&gt;I don't agree with 1).&lt;/P&gt;
&lt;P&gt;But agree with 2) .&lt;/P&gt;
&lt;P&gt;Here is an example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
set sashelp.bmt;
if Group ne 'ALL';
run;


proc quantlife data=have  seed=1268;
class group;
model T*Status(0) = group / quantile=(0.25 0.5);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1726470487019.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100371iFB6A54C1C32A58C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1726470487019.png" alt="Ksharp_0-1726470487019.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Using PROC LIFETEST to check the median of these two groups:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc lifetest data=have;
strata group;
time T*Status(0);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1726470549858.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100372i312011FAA70C964A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1726470549858.png" alt="Ksharp_1-1726470549858.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_2-1726470568649.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100373iC788BDF3D7FE3AAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_2-1726470568649.png" alt="Ksharp_2-1726470568649.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here 183-2204=-2021 . is the same as PROC QUANTLIFE .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 07:12:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-difference-of-median-survival-time/m-p/944044#M47146</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-09-16T07:12:14Z</dc:date>
    </item>
  </channel>
</rss>

