<?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 Proc Lifetest - median survival time in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-median-survival-time/m-p/632638#M30321</link>
    <description>&lt;P&gt;Is there a way to just get the quartiles table using Proc lifetest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to extract the median ( and mean) survival time from proc lifetest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the code -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc lifetest data=graph2 ;
time time*status(0);
strata drg_class_detail;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It gives me the Product limit survival estimates as well -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                                                       The LIFETEST Procedure
 
                                              Stratum 1: drg_class_detail = BIGUANIDES

                                                  Product-Limit Survival Estimates
 
                                                                      Survival
                                                                      Standard    Number    Number
                                     time     Survival    Failure      Error      Failed     Left

                                     0.00       1.0000           0           0        0     75699 
                                     0.00            .           .           .        1     75698 
                                     0.00            .           .           .        2     75697 
                                     0.00            .           .           .        3     75696 
                                     0.00            .           .           .        4     75695 
                                     0.00            .           .           .        5     75694 
                                     0.00            .           .           .        6     75693 
                                     0.00            .           .           .        7     75692 
                                     0.00            .           .           .        8     75691 &lt;/PRE&gt;&lt;P&gt;Since I have a lo of data and a lot of categories the result is very big in size.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to just get the median and mean survival times?&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2020 12:22:55 GMT</pubDate>
    <dc:creator>riya275</dc:creator>
    <dc:date>2020-03-17T12:22:55Z</dc:date>
    <item>
      <title>Proc Lifetest - median survival time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-median-survival-time/m-p/632638#M30321</link>
      <description>&lt;P&gt;Is there a way to just get the quartiles table using Proc lifetest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to extract the median ( and mean) survival time from proc lifetest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the code -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc lifetest data=graph2 ;
time time*status(0);
strata drg_class_detail;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It gives me the Product limit survival estimates as well -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                                                       The LIFETEST Procedure
 
                                              Stratum 1: drg_class_detail = BIGUANIDES

                                                  Product-Limit Survival Estimates
 
                                                                      Survival
                                                                      Standard    Number    Number
                                     time     Survival    Failure      Error      Failed     Left

                                     0.00       1.0000           0           0        0     75699 
                                     0.00            .           .           .        1     75698 
                                     0.00            .           .           .        2     75697 
                                     0.00            .           .           .        3     75696 
                                     0.00            .           .           .        4     75695 
                                     0.00            .           .           .        5     75694 
                                     0.00            .           .           .        6     75693 
                                     0.00            .           .           .        7     75692 
                                     0.00            .           .           .        8     75691 &lt;/PRE&gt;&lt;P&gt;Since I have a lo of data and a lot of categories the result is very big in size.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to just get the median and mean survival times?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 12:22:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-median-survival-time/m-p/632638#M30321</guid>
      <dc:creator>riya275</dc:creator>
      <dc:date>2020-03-17T12:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Lifetest - median survival time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-median-survival-time/m-p/632698#M30323</link>
      <description>&lt;P&gt;Here's some instructions and explanations on how to capture output that is shown. &lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods-output-statement/" target="_blank"&gt;https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods-output-statement/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use ODS SELECT/ODS EXCLUDE to limit the tables shown. This will generate NO output and save your tables. If you do wat specific tables, list them in the ODS SELECT name.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=15.1&amp;amp;docsetTarget=statug_lifetest_details85.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=15.1&amp;amp;docsetTarget=statug_lifetest_details85.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select none;

proc lifetest data=graph2;
ods output means = mean_surv quartiles= median_surv;
time time*status(0);
strata drg_class detail;
run;

ods select all;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Mar 2020 15:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-median-survival-time/m-p/632698#M30323</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-17T15:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Lifetest - median survival time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-median-survival-time/m-p/632699#M30324</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/163953"&gt;@riya275&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the &lt;A href="https://documentation.sas.com/?docsetId=odsproc&amp;amp;docsetTarget=p1b72ff70v3obrn16aanp1r9q2bu.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;ODS SELECT statement&lt;/A&gt; to extract the tables you need:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select quartiles means;
proc lifetest data=graph2;
time time*status(0);
strata drg_class_detail;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To find out the table names (here: &lt;FONT face="courier new,courier"&gt;quartiles&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;means&lt;/FONT&gt;) look into the &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_lifetest_details73.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank" rel="noopener"&gt;ODS Table Names&lt;/A&gt; section of the procedure documentation (under "Details") or run the PROC step with &lt;A href="https://documentation.sas.com/?docsetId=odsproc&amp;amp;docsetTarget=p1fpt3uuow90o3n155hs7bp1mo7f.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;ODS TRACE&lt;/A&gt; ON.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 15:22:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-median-survival-time/m-p/632699#M30324</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-03-17T15:22:13Z</dc:date>
    </item>
  </channel>
</rss>

