<?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: Stratified unadjusted Cox model Hazard ratio in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Stratified-unadjusted-Cox-model-Hazard-ratio/m-p/235383#M12456</link>
    <description>&lt;P&gt;ODS OUTPUT PHREG.PARAMETERESTIMATES=HR;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2015 20:50:38 GMT</pubDate>
    <dc:creator>ndp</dc:creator>
    <dc:date>2015-11-18T20:50:38Z</dc:date>
    <item>
      <title>Stratified unadjusted Cox model Hazard ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Stratified-unadjusted-Cox-model-Hazard-ratio/m-p/235286#M12441</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying to derive the Stratified unadjusted Cox model Hazard ratio and confidence intervals. The specs are such:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hazard ratio as a treatment effect measure will be derived from the&lt;BR /&gt;&lt;SPAN&gt;Cox proportional hazards model using SAS procedure PHREG&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The stratified unadjusted Cox model will be used (where the baseline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hazard function is allowed to vary across strata) for the primary&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;analysis, i.e. the MODEL statement will include the treatment group&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;variable as the only covariate and the STRATA statement will include&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;stratification variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PROC PHREG data=dataset;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MODEL survtime*censor(1)=trt / TIES=EXACT;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;STRATA stratum1 .. &amp;lt;stratum k&amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RUN;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* 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 group variable;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;stratum1 to stratumk represent stratification variables */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hazard ratio with two-sided 95% confidence interval will be based on Wald test.&lt;/SPAN&gt;&lt;BR /&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to capture the ods output for hazard ratio and confidence intervals 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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ODS TRACE ON;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ODS OUTPUT ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proc phreg data = pop3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; model months*event(0) = TRT01PN &amp;nbsp;TIES=EXACT;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; STRATA STRVAL1 STRVAL2 STRVAL3 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ODS OUTPUT CLOSE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ODS TRACE OFF;&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;&lt;SPAN&gt;Which ODS output dataset(s) need to be captured and do the values require extra code to derive?&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 16:13:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Stratified-unadjusted-Cox-model-Hazard-ratio/m-p/235286#M12441</guid>
      <dc:creator>bentleyousley</dc:creator>
      <dc:date>2015-11-18T16:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Stratified unadjusted Cox model Hazard ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Stratified-unadjusted-Cox-model-Hazard-ratio/m-p/235383#M12456</link>
      <description>&lt;P&gt;ODS OUTPUT PHREG.PARAMETERESTIMATES=HR;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 20:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Stratified-unadjusted-Cox-model-Hazard-ratio/m-p/235383#M12456</guid>
      <dc:creator>ndp</dc:creator>
      <dc:date>2015-11-18T20:50:38Z</dc:date>
    </item>
  </channel>
</rss>

