<?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: Differences in results of cause-specific hazard models attributable to programming syntax: why? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Differences-in-results-of-cause-specific-hazard-models/m-p/953486#M47709</link>
    <description>&lt;P&gt;Thank you for your reply!&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437457"&gt;@Season&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears to me that the discrepancies vanish (as they should) if you tighten the convergence criteria, e.g., add the option &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_phreg_syntax17.htm#statug.phreg.phrmodgconv" target="_blank" rel="noopener"&gt;GCONV=&lt;/A&gt;1E-10 to the MODEL statements (default is&amp;nbsp;1E-8). So it's just the iterative algorithms used by PROC PHREG approaching the same limit in different ways and thus reaching convergence at slightly different values of the parameter estimates.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, you are right. Imposing a more stringent restriction on model convergence criteria like the one you mentioned yields concordant results.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2024 07:02:17 GMT</pubDate>
    <dc:creator>Season</dc:creator>
    <dc:date>2024-12-13T07:02:17Z</dc:date>
    <item>
      <title>Differences in results of cause-specific hazard models attributable to programming syntax: why?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Differences-in-results-of-cause-specific-hazard-models/m-p/953399#M47706</link>
      <description>&lt;P&gt;I am building a cause-specific hazard regression model. What catches my attention is that different results are attained with different programming syntax that essentially build the same model.&lt;/P&gt;
&lt;P&gt;I used the bone marrow transplantation dataset of Example 87.15 of SAS Help for analysis, which is provided here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Bmt;
   input Disease T Status @@;
   label T='Disease-Free Survival in Days';
   format Disease DiseaseGroup.;
   datalines;
1   2081   0   1   1602   0   1   1496   0   1   1462   0   1   1433   0
1   1377   0   1   1330   0   1    996   0   1    226   0   1   1199   0
1   1111   0   1    530   0   1   1182   0   1   1167   0   1    418   2
1    383   1   1    276   2   1    104   1   1    609   1   1    172   2
1    487   2   1    662   1   1    194   2   1    230   1   1    526   2
1    122   2   1    129   1   1     74   1   1    122   1   1     86   2
1    466   2   1    192   1   1    109   1   1     55   1   1      1   2
1    107   2   1    110   1   1    332   2   2   2569   0   2   2506   0
2   2409   0   2   2218   0   2   1857   0   2   1829   0   2   1562   0
2   1470   0   2   1363   0   2   1030   0   2    860   0   2   1258   0
2   2246   0   2   1870   0   2   1799   0   2   1709   0   2   1674   0
2   1568   0   2   1527   0   2   1324   0   2    957   0   2    932   0
2    847   0   2    848   0   2   1850   0   2   1843   0   2   1535   0
2   1447   0   2   1384   0   2    414   2   2   2204   2   2   1063   2
2    481   2   2    105   2   2    641   2   2    390   2   2    288   2
2    421   1   2     79   2   2    748   1   2    486   1   2     48   2
2    272   1   2   1074   2   2    381   1   2     10   2   2     53   2
2     80   2   2     35   2   2    248   1   2    704   2   2    211   1
2    219   1   2    606   1   3   2640   0   3   2430   0   3   2252   0
3   2140   0   3   2133   0   3   1238   0   3   1631   0   3   2024   0
3   1345   0   3   1136   0   3    845   0   3    422   1   3    162   2
3     84   1   3    100   1   3      2   2   3     47   1   3    242   1
3    456   1   3    268   1   3    318   2   3     32   1   3    467   1
3     47   1   3    390   1   3    183   2   3    105   2   3    115   1
3    164   2   3     93   1   3    120   1   3     80   2   3    677   2
3     64   1   3    168   2   3     74   2   3     16   2   3    157   1
3    625   1   3     48   1   3    273   1   3     63   2   3     76   1
3    113   1   3    363   2
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I first used the method introduced in &lt;A href="https://www.amazon.com/Survival-Analysis-Using-SAS-Practical/dp/1599946408/ref=sr_1_1?crid=1BMVP36VXB9Z9&amp;amp;dib=eyJ2IjoiMSJ9.A7-7upagJtvgBTGRo8ZliBcZ4IZXubpW88PKqNDXw4zGjHj071QN20LucGBJIEps.ZksMSTyYYg_oduMa3tRMDRFD1TXrVtSP0vnq3OEiTcI&amp;amp;dib_tag=se&amp;amp;keywords=Survival+Analysis+Using+SAS+A+Practical+Guide&amp;amp;qid=1734017273&amp;amp;sprefix=survival+analysis+using+sas+a+practical+guide%2Caps%2C418&amp;amp;sr=8-1" target="_blank"&gt;Survival Analysis Using SAS: A Practical Guide, Second Edition: 9781599946405: Medicine &amp;amp; Health Science Books @ Amazon.com&lt;/A&gt;. Now that I wish to focus on the relapse-specific hazard (status=1), I treated both censor (status=0) and death before replase (status=2) as competing events. This helps me formulate the following code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg data=bmt;
class disease/param=ref ref=first;
model t*status(0,2)=disease;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This generates the following result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Season_0-1734017532440.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102962i2C558B351C006E50/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Season_0-1734017532440.png" alt="Season_0-1734017532440.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;On the other hand, SAS Help provides other syntax:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg data=Bmt;
   class Disease (ref=first);
   model T*Status(0)=Disease / eventcode(cox)=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That generates another set of estimates for event=1:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Season_2-1734017694088.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102964i6BE7A3ACC894EA1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Season_2-1734017694088.png" alt="Season_2-1734017694088.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Comparing these results with the ones above, it can be seen that the regression coefficients are close, but not identical. The difference in the results pertaining to disease=3 causes a difference of 0.0001 between the two Pr&amp;gt;Chisq's.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The questions I wish to raise are: why are the results different? Is the underlying factor that causes this difference consequential with respect to the accuracy of results had we conducted analyses in other scenarios (e.g., more predictors, more observations, more competing events)?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 15:42:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Differences-in-results-of-cause-specific-hazard-models/m-p/953399#M47706</guid>
      <dc:creator>Season</dc:creator>
      <dc:date>2024-12-12T15:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in results of cause-specific hazard models attributable to programming syntax: why?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Differences-in-results-of-cause-specific-hazard-models/m-p/953434#M47707</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437457"&gt;@Season&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears to me that the discrepancies vanish (as they should) if you tighten the convergence criteria, e.g., add the option &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_phreg_syntax17.htm#statug.phreg.phrmodgconv" target="_blank" rel="noopener"&gt;GCONV=&lt;/A&gt;1E-10 to the MODEL statements (default is&amp;nbsp;1E-8). So it's just the iterative algorithms used by PROC PHREG approaching the same limit in different ways and thus reaching convergence at slightly different values of the parameter estimates.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 18:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Differences-in-results-of-cause-specific-hazard-models/m-p/953434#M47707</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-12-12T18:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in results of cause-specific hazard models attributable to programming syntax: why?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Differences-in-results-of-cause-specific-hazard-models/m-p/953486#M47709</link>
      <description>&lt;P&gt;Thank you for your reply!&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437457"&gt;@Season&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears to me that the discrepancies vanish (as they should) if you tighten the convergence criteria, e.g., add the option &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_phreg_syntax17.htm#statug.phreg.phrmodgconv" target="_blank" rel="noopener"&gt;GCONV=&lt;/A&gt;1E-10 to the MODEL statements (default is&amp;nbsp;1E-8). So it's just the iterative algorithms used by PROC PHREG approaching the same limit in different ways and thus reaching convergence at slightly different values of the parameter estimates.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, you are right. Imposing a more stringent restriction on model convergence criteria like the one you mentioned yields concordant results.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 07:02:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Differences-in-results-of-cause-specific-hazard-models/m-p/953486#M47709</guid>
      <dc:creator>Season</dc:creator>
      <dc:date>2024-12-13T07:02:17Z</dc:date>
    </item>
  </channel>
</rss>

