<?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 Survival analysis with counting process and multiple time varying covariates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/742705#M232371</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Have you ever run the&amp;nbsp;&lt;SPAN&gt;PROC PHREG in which you include more than one time varying covariate using counting process?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I understand that in counting process approach, for each variable (x, y), we need to restructure data into: event, start, stop, and var (x,y)/covariate value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can we run a multivariate model including x and y with 2 different data set, and more complicated if we have many more variables?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I really appreciate&amp;nbsp;any help on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks so much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hao&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;FU_TIME&lt;/TD&gt;&lt;TD&gt;Event&lt;/TD&gt;&lt;TD&gt;X1&lt;/TD&gt;&lt;TD&gt;…&lt;/TD&gt;&lt;TD&gt;X5&lt;/TD&gt;&lt;TD&gt;Y1&lt;/TD&gt;&lt;TD&gt;…&lt;/TD&gt;&lt;TD&gt;Y5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 16:37:37 GMT</pubDate>
    <dc:creator>haoduonge</dc:creator>
    <dc:date>2021-05-20T16:37:37Z</dc:date>
    <item>
      <title>Survival analysis with counting process and multiple time varying covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/742705#M232371</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Have you ever run the&amp;nbsp;&lt;SPAN&gt;PROC PHREG in which you include more than one time varying covariate using counting process?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I understand that in counting process approach, for each variable (x, y), we need to restructure data into: event, start, stop, and var (x,y)/covariate value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can we run a multivariate model including x and y with 2 different data set, and more complicated if we have many more variables?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I really appreciate&amp;nbsp;any help on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks so much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hao&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;FU_TIME&lt;/TD&gt;&lt;TD&gt;Event&lt;/TD&gt;&lt;TD&gt;X1&lt;/TD&gt;&lt;TD&gt;…&lt;/TD&gt;&lt;TD&gt;X5&lt;/TD&gt;&lt;TD&gt;Y1&lt;/TD&gt;&lt;TD&gt;…&lt;/TD&gt;&lt;TD&gt;Y5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 16:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/742705#M232371</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2021-05-20T16:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Survival analysis with counting process and multiple time varying covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/742926#M232492</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;As nobody has answered you until now, I will try to help.&lt;/P&gt;
&lt;P&gt;Just a remark first: It would have been better to post this question in the 'Statistical Procedures' board under the 'Analytics' heading. Probably you would have got an earlier answer there. This is just a reminder for your future questions on SAS/STAT procedures. Don't post / duplicate this question again as a new topic in the other board. [It will maybe be moved by someone having this power (the power to move between boards).]&lt;/P&gt;
&lt;P&gt;To come back on your question:&lt;/P&gt;
&lt;P&gt;Why are you talking about two different data sets?&lt;/P&gt;
&lt;P&gt;And what's the problem to have&amp;nbsp;multiple time varying (time dependent) covariates?&lt;/P&gt;
&lt;P&gt;To me, your model statement in PROC PHREG can look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Counting Process Style of Input */&lt;BR /&gt;model (T1,T2) * Status(0) = Treatment X1 X2 X3 X4 Z1 Z2 Z3;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where X1-X4 are&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;fixed explanatory variables and Z1-Z3 are&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;time-dependent covariates.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Why do you think you can only have one Z? Do you experience any problems when using &amp;gt;1 Z-var?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Or do you have a problem aligning Z1, Z2, Z3 (i.e. giving them all three a value for the same at-risk interval&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;CODE class="AAvarname"&gt;T1&lt;/CODE&gt;&lt;SPAN style="font-family: inherit;"&gt;,&lt;/SPAN&gt;&lt;CODE class="AAvarname"&gt;T2&lt;/CODE&gt;&lt;SPAN style="font-family: inherit;"&gt;] )&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 15:33:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/742926#M232492</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-05-21T15:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Survival analysis with counting process and multiple time varying covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/742930#M232496</link>
      <description>&lt;P&gt;Thanks so much for your reply.&lt;/P&gt;&lt;P&gt;I understand that for Z1-Z3, I need to restructure data, what if I have another set of Y1-Y3 - also&amp;nbsp;&lt;SPAN&gt;time-dependent covariate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hao&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 15:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/742930#M232496</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2021-05-21T15:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Survival analysis with counting process and multiple time varying covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/742934#M232499</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Why can't you merge both data sets?&lt;/P&gt;
&lt;P&gt;You merge keys would be the triple ( ID , T1 , T2 ).&lt;/P&gt;
&lt;P&gt;Koen&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 15:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/742934#M232499</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-05-21T15:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Survival analysis with counting process and multiple time varying covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/742936#M232500</link>
      <description>&lt;P&gt;I will try that.&lt;/P&gt;&lt;P&gt;Thanks so much!!!&lt;/P&gt;&lt;P&gt;Hao&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 15:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/742936#M232500</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2021-05-21T15:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Survival analysis with counting process and multiple time varying covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/743063#M232553</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It worked great for variables with same format z1-z3, y1-y3, thanks so much!&lt;/P&gt;&lt;P&gt;However, I have another variable, also time varying covariate but the format is not z1-z3 y1-y3.&lt;/P&gt;&lt;P&gt;For example, one person took a medication during the FU time, and the time before taking medication is counted as non-exposure time, and event=0, and time after taking med will be counted as exposure and their event =0 or 1, and its&amp;nbsp;T1, T2 are different from those from&amp;nbsp;z1-z3, y1-y3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have way to cover this example?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Hao&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 21:54:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/743063#M232553</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2021-05-21T21:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Survival analysis with counting process and multiple time varying covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/743124#M232583</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138243"&gt;@haoduonge&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not familiar enough with survival analysis to be able to answer the latter question.&lt;/P&gt;
&lt;P&gt;I recommend you to &amp;lt;start a new topic&amp;gt; in the 'Statistical Procedures' board under 'Analytics' (and possibly to mark this topic as solved).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your new topic / question you could use the title:&lt;/P&gt;
&lt;P&gt;PHREG Counting Process Style of Input and binary time-varying covariate.&lt;/P&gt;
&lt;P&gt;And in the body of your post you can ask what to do if the nature of your&amp;nbsp;time-varying covariates does not allow you to align all values in the (T1,T2] intervals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course you can also consider to use another style of input (and / or another style of model).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Koen&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2021 12:34:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/743124#M232583</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-05-22T12:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Survival analysis with counting process and multiple time varying covariates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/743145#M232592</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Hao&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2021 17:22:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Survival-analysis-with-counting-process-and-multiple-time/m-p/743145#M232592</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2021-05-22T17:22:19Z</dc:date>
    </item>
  </channel>
</rss>

