<?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: How to calculate concordance for Cox proportional hazards model for recurrent events in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-concordance-for-Cox-proportional-hazards-model/m-p/957523#M47952</link>
    <description>&lt;P&gt;I suspect it's something to do with the fact that when you specify the COVS option, it's calculating a robust SE, and conversely, when you calculate concordance stats, it seems that that option is calculating its own SE and the two aren't compatible.&amp;nbsp; I imagine some R person has worked out whatever crazy, nearly impossible to verify method for aligning the two methods, but the people at SAS have avoided this.&amp;nbsp; You could of course run PHREG twice, once for concordance and once with COVS specified (using the confidence intervals from the version with COVS specified), but I imagine that's not ideal.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I only play a statistician on TV (took one look at the documentation for the concordance option and immediately closed that page), but I have a fair amount of PHREG experience, including with longitudinal data.&amp;nbsp; Hopefully some actual statisticians will reply.&amp;nbsp; Good luck.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 23:27:49 GMT</pubDate>
    <dc:creator>quickbluefish</dc:creator>
    <dc:date>2025-01-28T23:27:49Z</dc:date>
    <item>
      <title>How to calculate concordance for Cox proportional hazards model for recurrent events</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-concordance-for-Cox-proportional-hazards-model/m-p/957507#M47949</link>
      <description>&lt;P&gt;I want to calculate the concordance for a Cox proportional hazards model with the Andersen-Gill extension for recurrent events. However, I got the error message below:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: Neither concordance nor ROC analysis is performed when the COVS option in the PROC PHREG&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;statement is specified.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found some similar topics from the forum but none of them have been resolved, instead, they advised using R to solve this issue. I wonder if any newly updates on this issue using SAS are available. Many thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 20:24:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-concordance-for-Cox-proportional-hazards-model/m-p/957507#M47949</guid>
      <dc:creator>SeaMoon_168</dc:creator>
      <dc:date>2025-01-28T20:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate concordance for Cox proportional hazards model for recurrent events</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-concordance-for-Cox-proportional-hazards-model/m-p/957518#M47950</link>
      <description>It would be helpful to see your code.</description>
      <pubDate>Tue, 28 Jan 2025 22:11:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-concordance-for-Cox-proportional-hazards-model/m-p/957518#M47950</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2025-01-28T22:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate concordance for Cox proportional hazards model for recurrent events</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-concordance-for-Cox-proportional-hazards-model/m-p/957521#M47951</link>
      <description>&lt;P&gt;Thank you for your response. The data and code can be found from&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_phreg_examples10.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/statug/15.2/statug_phreg_examples10.htm&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;data Bladder;
   keep ID TStart TStop Status Trt Number Size Visit;
   retain ID TStart 0;
   array tt[4] T1-T4;
   infile datalines missover;
   input Trt Time Number Size T1-T4;
   ID + 1;
   TStart=0;
   do Visit=1 to 4;
      if tt[Visit] = . then do;
         TStop=Time;
         Status=0;
      end;
      else do;
         TStop=tt[Visit];
         Status=1;
      end;
      output;
      TStart=TStop;
   end;
   if (TStart &amp;lt; Time) then delete;
   datalines;
1       0       1     1
1       1       1     3
1       4       2     1
1       7       1     1
1       10      5     1
1       10      4     1   6
1       14      1     1
1       18      1     1
1       18      1     3   5
1       18      1     1   12  16
1       23      3     3
1       23      1     3   10  15
1       23      1     1   3   16  23
1       23      3     1   3   9   21
1       24      2     3   7   10  16  24
1       25      1     1   3   15  25
1       26      1     2
1       26      8     1   1
1       26      1     4   2   26
1       28      1     2   25
1       29      1     4
1       29      1     2
1       29      4     1
1       30      1     6   28  30
1       30      1     5   2   17  22
1       30      2     1   3   6   8   12
1       31      1     3   12  15  24
1       32      1     2
1       34      2     1
1       36      2     1
1       36      3     1   29
1       37      1     2
1       40      4     1   9   17  22  24
1       40      5     1   16  19  23  29
1       41      1     2
1       43      1     1   3
1       43      2     6   6
1       44      2     1   3   6   9
1       45      1     1   9   11  20  26
1       48      1     1   18
1       49      1     3
1       51      3     1   35
1       53      1     7   17
1       53      3     1   3   15  46  51
1       59      1     1
1       61      3     2   2   15  24  30
1       64      1     3   5   14  19  27
1       64      2     3   2   8   12  13
2       1       1     3
2       1       1     1
2       5       8     1   5
2       9       1     2
2       10      1     1
2       13      1     1
2       14      2     6   3
2       17      5     3   1   3   5   7
2       18      5     1
2       18      1     3   17
2       19      5     1   2
2       21      1     1   17  19
2       22      1     1
2       25      1     3
2       25      1     5
2       25      1     1
2       26      1     1   6   12  13
2       27      1     1   6
2       29      2     1   2
2       36      8     3   26  35
2       38      1     1
2       39      1     1   22  23  27  32
2       39      6     1   4   16  23  27
2       40      3     1   24  26  29  40
2       41      3     2
2       41      1     1
2       43      1     1   1   27
2       44      1     1
2       44      6     1   2   20  23  27
2       45      1     2
2       46      1     4   2
2       46      1     4
2       49      3     3
2       50      1     1
2       50      4     1   4   24  47
2       54      3     4
2       54      2     1   38
2       59      1     3
;

title 'Intensity Model and Proportional Means Model';
proc phreg data=Bladder concordance covm covs(aggregate);
   model (TStart, TStop) * Status(0) = Trt Number Size;
   id id;
   where TStart &amp;lt; TStop;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jan 2025 22:36:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-concordance-for-Cox-proportional-hazards-model/m-p/957521#M47951</guid>
      <dc:creator>SeaMoon_168</dc:creator>
      <dc:date>2025-01-28T22:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate concordance for Cox proportional hazards model for recurrent events</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-concordance-for-Cox-proportional-hazards-model/m-p/957523#M47952</link>
      <description>&lt;P&gt;I suspect it's something to do with the fact that when you specify the COVS option, it's calculating a robust SE, and conversely, when you calculate concordance stats, it seems that that option is calculating its own SE and the two aren't compatible.&amp;nbsp; I imagine some R person has worked out whatever crazy, nearly impossible to verify method for aligning the two methods, but the people at SAS have avoided this.&amp;nbsp; You could of course run PHREG twice, once for concordance and once with COVS specified (using the confidence intervals from the version with COVS specified), but I imagine that's not ideal.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I only play a statistician on TV (took one look at the documentation for the concordance option and immediately closed that page), but I have a fair amount of PHREG experience, including with longitudinal data.&amp;nbsp; Hopefully some actual statisticians will reply.&amp;nbsp; Good luck.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 23:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-concordance-for-Cox-proportional-hazards-model/m-p/957523#M47952</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2025-01-28T23:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate concordance for Cox proportional hazards model for recurrent events</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-concordance-for-Cox-proportional-hazards-model/m-p/957535#M47953</link>
      <description>&lt;P&gt;According to the LOG&lt;/P&gt;
&lt;PRE&gt;NOTE: Neither concordance nor ROC analysis is performed when the COVS option in the PROC PHREG statement is specified.
&lt;/PRE&gt;
&lt;P&gt;I think you need to get rid of option "covs(aggregate)".&lt;/P&gt;
&lt;P&gt;But after removing this option ,you would get this NOTE.&lt;/P&gt;
&lt;PRE&gt;NOTE: Neither concordance nor ROC analysis is performed with the START/STOP specification of time.
&lt;/PRE&gt;
&lt;P&gt;a.k.a&amp;nbsp; you can't perform this test by statements like:&lt;/P&gt;
&lt;PRE&gt; model (TStart, TStop)&lt;/PRE&gt;
&lt;P&gt;therefore, you need to change your data structure .&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 06:54:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-concordance-for-Cox-proportional-hazards-model/m-p/957535#M47953</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-01-29T06:54:43Z</dc:date>
    </item>
  </channel>
</rss>

