<?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 - Requesting median survival in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LIFETEST-Requesting-median-survival/m-p/868894#M43003</link>
    <description>&lt;P&gt;Use the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_lifetest_syntax01.htm#:~:text=The%20PROC%20LIFETEST%20statement%20invokes,of%20the%20survivor%20function%20estimation." target="_self"&gt;TIMELIST&lt;/A&gt; option on&amp;nbsp; for specifying survival at 10 years.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The median survival should be reported by default in the quartiles table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a survival macro that does some standard reporting that you can check out but it's probably more than a decade old now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/d3bce2a9e2ef0523db9d" target="_blank" rel="noopener"&gt;https://gist.github.com/statgeek/d3bce2a9e2ef0523db9d&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc lifetest data=STAN.MELANOMA timelist=(10) plots=survival graphics;
/* (0) The value 0 indicates a censored individual in this dataset. */
	time person_years*status(0);
/* 	strata statement produces a table for each stratum. */
/* 	The log rank test p-value tells you if the strata differ. */
	strata ulcer;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This assumes that your time is in years otherwise you'll need to do some unit conversions for the time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36911"&gt;@_maldini_&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What is the correct syntax for requesting specific statistics when doing survival analyses using PROC LIFETEST?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc lifetest data=STAN.MELANOMA plots=survival graphics;
/* (0) The value 0 indicates a censored individual in this dataset. */
	time person_years*status(0);
/* 	strata statement produces a table for each stratum. */
/* 	The log rank test p-value tells you if the strata differ. */
	strata ulcer;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For example, I want to request the median survival time and the survival probability at 10 years for one group in the STRATA statement (i.e., ulcer = 1, ulcer = 0 = no ulcer).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Apr 2023 16:48:05 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2023-04-10T16:48:05Z</dc:date>
    <item>
      <title>PROC LIFETEST - Requesting median survival</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LIFETEST-Requesting-median-survival/m-p/868892#M43002</link>
      <description>&lt;P&gt;What is the correct syntax for requesting specific statistics when doing survival analyses using PROC LIFETEST?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc lifetest data=STAN.MELANOMA plots=survival graphics;
/* (0) The value 0 indicates a censored individual in this dataset. */
	time person_years*status(0);
/* 	strata statement produces a table for each stratum. */
/* 	The log rank test p-value tells you if the strata differ. */
	strata ulcer;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For example, I want to request the median survival time and the survival probability at 10 years for one group in the STRATA statement (i.e., ulcer = 1, ulcer = 0 = no ulcer).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 16:34:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LIFETEST-Requesting-median-survival/m-p/868892#M43002</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2023-04-10T16:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LIFETEST - Requesting median survival</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LIFETEST-Requesting-median-survival/m-p/868894#M43003</link>
      <description>&lt;P&gt;Use the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_lifetest_syntax01.htm#:~:text=The%20PROC%20LIFETEST%20statement%20invokes,of%20the%20survivor%20function%20estimation." target="_self"&gt;TIMELIST&lt;/A&gt; option on&amp;nbsp; for specifying survival at 10 years.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The median survival should be reported by default in the quartiles table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a survival macro that does some standard reporting that you can check out but it's probably more than a decade old now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/d3bce2a9e2ef0523db9d" target="_blank" rel="noopener"&gt;https://gist.github.com/statgeek/d3bce2a9e2ef0523db9d&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc lifetest data=STAN.MELANOMA timelist=(10) plots=survival graphics;
/* (0) The value 0 indicates a censored individual in this dataset. */
	time person_years*status(0);
/* 	strata statement produces a table for each stratum. */
/* 	The log rank test p-value tells you if the strata differ. */
	strata ulcer;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This assumes that your time is in years otherwise you'll need to do some unit conversions for the time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36911"&gt;@_maldini_&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What is the correct syntax for requesting specific statistics when doing survival analyses using PROC LIFETEST?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc lifetest data=STAN.MELANOMA plots=survival graphics;
/* (0) The value 0 indicates a censored individual in this dataset. */
	time person_years*status(0);
/* 	strata statement produces a table for each stratum. */
/* 	The log rank test p-value tells you if the strata differ. */
	strata ulcer;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For example, I want to request the median survival time and the survival probability at 10 years for one group in the STRATA statement (i.e., ulcer = 1, ulcer = 0 = no ulcer).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 16:48:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LIFETEST-Requesting-median-survival/m-p/868894#M43003</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-04-10T16:48:05Z</dc:date>
    </item>
  </channel>
</rss>

