<?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: P-value for Stratified log-rank test in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/P-value-for-Stratified-log-rank-test/m-p/235362#M12453</link>
    <description>&lt;P&gt;You move from a one sided p-value to a 2 sided p-value by mulitplying 2....so that might be what's happening here&lt;/P&gt;</description>
    <pubDate>Mon, 23 Nov 2015 21:37:05 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-11-23T21:37:05Z</dc:date>
    <item>
      <title>P-value for Stratified log-rank test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/P-value-for-Stratified-log-rank-test/m-p/235278#M12439</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying to derive the p-value for a stratified log-rank test using lifetest. The specs are such:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A stratified log-rank test will be used to test the equivalence&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hypothesis of survival distributions. The stratification factors are&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the randomization stratification factors. The LIFETEST procedure in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SAS with the TIME statement including a variable with survival times&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and a (right) censoring variable, with STRATA statement for the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;stratifying variable and the GROUP option for identifying treatment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arms will be used to obtain one sided p-value from log-rank score&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;test. The implementation is as follows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PROC LIFETEST data=dataset METHOD=KM CONFTYPE=LOGLOG;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;TIME survtime*censor(1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;STRATA stratum1 stratum2 stratum3 / GROUP=trt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RUN;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* stratum1 stratum2 stratum3 represents the 3 stratum variables (to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;be included for stratified analysis only);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;survtime represents variable containing event/censor times;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;censor represents censoring variable (1=censored, 0=event);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;trt represents treatment arm variable; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to capture the ods output into a dataset for reporting. This is the current code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ODS TRACE ON;&lt;BR /&gt;&lt;SPAN&gt;ODS OUTPUT ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; PROC LIFETEST data=pop3_sall METHOD=KM CONFTYPE=LOGLOG&amp;nbsp; ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Time months*event(0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;STRATA STRVAL1 STRVAL2 STRVAL3 / GROUP=TRT01PN ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; RUN;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ODS OUTPUT CLOSE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ODS TRACE OFF;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Which ODS output dataset needs to be captured and does it require extra code to derive the p-value?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 15:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/P-value-for-Stratified-log-rank-test/m-p/235278#M12439</guid>
      <dc:creator>bentleyousley</dc:creator>
      <dc:date>2015-11-18T15:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: P-value for Stratified log-rank test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/P-value-for-Stratified-log-rank-test/m-p/235334#M12448</link>
      <description>&lt;P&gt;I think you want as part of the proc code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods output homtests= youroutputset;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 18:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/P-value-for-Stratified-log-rank-test/m-p/235334#M12448</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-11-18T18:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: P-value for Stratified log-rank test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/P-value-for-Stratified-log-rank-test/m-p/235335#M12449</link>
      <description>Do you see the value you want in the output from the code above?</description>
      <pubDate>Wed, 18 Nov 2015 18:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/P-value-for-Stratified-log-rank-test/m-p/235335#M12449</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-18T18:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: P-value for Stratified log-rank test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/P-value-for-Stratified-log-rank-test/m-p/235359#M12452</link>
      <description>Thank you for responding. I originally used "homtests" for the output dataset, but the p-value doesn't seem to make sense based on the table I'm checking. The discription in the footnote says:&lt;BR /&gt;"P-value is obtained from the one-sided stratified logrank test". The p-value based on homtests is: 0.0898 and the table reports: 0.045. Any ideas?&lt;BR /&gt;Thank you for your help!</description>
      <pubDate>Wed, 18 Nov 2015 19:13:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/P-value-for-Stratified-log-rank-test/m-p/235359#M12452</guid>
      <dc:creator>bentleyousley</dc:creator>
      <dc:date>2015-11-18T19:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: P-value for Stratified log-rank test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/P-value-for-Stratified-log-rank-test/m-p/235362#M12453</link>
      <description>&lt;P&gt;You move from a one sided p-value to a 2 sided p-value by mulitplying 2....so that might be what's happening here&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 21:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/P-value-for-Stratified-log-rank-test/m-p/235362#M12453</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-23T21:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: P-value for Stratified log-rank test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/P-value-for-Stratified-log-rank-test/m-p/235486#M12461</link>
      <description>&lt;P&gt;Without your data it's a bit difficult to diagnose any specific values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the example procedure I run the values as appearing in the output were in that table, unless you're looking at a different table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would have to post the table with the values you're referencing and preferably the data that generated the output. The data need not be real or complete but sufficient to generate example output and should be in the form of&amp;nbsp;datastep code.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 15:54:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/P-value-for-Stratified-log-rank-test/m-p/235486#M12461</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-11-19T15:54:26Z</dc:date>
    </item>
  </channel>
</rss>

