<?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 Cox proportional hazards model with time-dependent covariates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Cox-proportional-hazards-model-with-time-dependent-covariates/m-p/233065#M308413</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As part of an analysis (I can provide additional details if needed) I need to obtain the estimate of the linear predictor (i.e. the β’x part of S(t) = S&lt;FONT size="1 2 3 4 5 6 7"&gt;0&lt;/FONT&gt;(t) ∙ exp(β’x)) for each time point for each patient from a cox proportional hazards model with time-dependent covariates. However, I cannot figure out how to do that in SAS when the model includes a time-dependent covariate. In a simple cox model, it is relatively easy to get by specifying “baseline” and “xbeta”:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;phreg&lt;/STRONG&gt; data = data;&lt;/P&gt;&lt;P&gt;model time*event(&lt;STRONG&gt;0&lt;/STRONG&gt;) = variables;&lt;/P&gt;&lt;P&gt;baseline covariates = data xbeta = score;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the “baseline” statement does not work when you introduce a time-dependent covariate. Does anyone know how I can obtain the estimates? &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2015 13:26:30 GMT</pubDate>
    <dc:creator>Lars_Andersen</dc:creator>
    <dc:date>2015-11-04T13:26:30Z</dc:date>
    <item>
      <title>Cox proportional hazards model with time-dependent covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cox-proportional-hazards-model-with-time-dependent-covariates/m-p/233065#M308413</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As part of an analysis (I can provide additional details if needed) I need to obtain the estimate of the linear predictor (i.e. the β’x part of S(t) = S&lt;FONT size="1 2 3 4 5 6 7"&gt;0&lt;/FONT&gt;(t) ∙ exp(β’x)) for each time point for each patient from a cox proportional hazards model with time-dependent covariates. However, I cannot figure out how to do that in SAS when the model includes a time-dependent covariate. In a simple cox model, it is relatively easy to get by specifying “baseline” and “xbeta”:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;phreg&lt;/STRONG&gt; data = data;&lt;/P&gt;&lt;P&gt;model time*event(&lt;STRONG&gt;0&lt;/STRONG&gt;) = variables;&lt;/P&gt;&lt;P&gt;baseline covariates = data xbeta = score;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the “baseline” statement does not work when you introduce a time-dependent covariate. Does anyone know how I can obtain the estimates? &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 13:26:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cox-proportional-hazards-model-with-time-dependent-covariates/m-p/233065#M308413</guid>
      <dc:creator>Lars_Andersen</dc:creator>
      <dc:date>2015-11-04T13:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cox proportional hazards model with time-dependent covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cox-proportional-hazards-model-with-time-dependent-covariates/m-p/233101#M308414</link>
      <description>&lt;P&gt;Lars,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you seen this:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings12/168-2012.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings12/168-2012.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 15:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cox-proportional-hazards-model-with-time-dependent-covariates/m-p/233101#M308414</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2015-11-04T15:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cox proportional hazards model with time-dependent covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cox-proportional-hazards-model-with-time-dependent-covariates/m-p/233103#M308415</link>
      <description>&lt;P&gt;Hi Brian,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I did previously see that but it was not clear to me that it answers my questions. Do you suggest I use the "counting process" method?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 15:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cox-proportional-hazards-model-with-time-dependent-covariates/m-p/233103#M308415</guid>
      <dc:creator>Lars_Andersen</dc:creator>
      <dc:date>2015-11-04T15:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cox proportional hazards model with time-dependent covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cox-proportional-hazards-model-with-time-dependent-covariates/m-p/233106#M308416</link>
      <description>&lt;P&gt;I would try the programming statement method first as it seems much simpler and gives the same results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 16:04:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cox-proportional-hazards-model-with-time-dependent-covariates/m-p/233106#M308416</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2015-11-04T16:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cox proportional hazards model with time-dependent covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cox-proportional-hazards-model-with-time-dependent-covariates/m-p/233107#M308417</link>
      <description>&lt;P&gt;As noted in my original post, the programming method and "baseline" statement cannot be used for models with time-dependent covariates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 16:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cox-proportional-hazards-model-with-time-dependent-covariates/m-p/233107#M308417</guid>
      <dc:creator>Lars_Andersen</dc:creator>
      <dc:date>2015-11-04T16:10:01Z</dc:date>
    </item>
  </channel>
</rss>

