<?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: Strange result of Proc lifetest in one strata in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Strange-result-of-Proc-lifetest-in-one-strata/m-p/907849#M45072</link>
    <description>&lt;P&gt;Shouldn't you be specifying a FAILCODE= value in your code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;proc lifetest data=Phreg12121   
plots=cif(test cl)  outcif=survival_data;
time T_FI1YR*outcome(0)/failcode; 			
strata cohort ;
*WEIGHT weight0_SD;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 Dec 2023 17:25:29 GMT</pubDate>
    <dc:creator>OsoGris</dc:creator>
    <dc:date>2023-12-13T17:25:29Z</dc:date>
    <item>
      <title>Strange result of Proc lifetest in one strata</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Strange-result-of-Proc-lifetest-in-one-strata/m-p/907821#M45071</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am currently facing an issue while working with a longitudinal health dataset to calculate the Cumulative Incidence Function (CIF) of chronic disease among four cohorts with competing risks (outcomes coded as 0. censor, 1. event, 2. death). I am trying to add personal weight, but ERROR&amp;nbsp;The WEIGHT statement is not available for competing-risks data. Is it OK if I don't apply weight?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The specific concern lies with cohort=6, mid babyboomers, which is displaying an unusually high CIF of 79% compared to the more typical values ranging from 8% to 10% for other cohorts.&lt;/P&gt;&lt;P&gt;Summary of Failure OutcomesStratum cohort FailedEvents CompetingEvents Censored Total1 3.Hrs2 4.WarBabies3 5.Early BabyBoomers4 6.Mid BabyBoomersTotal &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Summary of Failure Outcomes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Stratum&lt;/TD&gt;&lt;TD&gt;RACOHBYR&lt;/TD&gt;&lt;TD&gt;Failed&lt;/TD&gt;&lt;TD&gt;Competing&lt;/TD&gt;&lt;TD&gt;Censored&lt;/TD&gt;&lt;TD&gt;Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Events&lt;/TD&gt;&lt;TD&gt;Events&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3.Hrs&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;274&lt;/TD&gt;&lt;TD&gt;1316&lt;/TD&gt;&lt;TD&gt;1660&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;4.WarBabies&lt;/TD&gt;&lt;TD&gt;108&lt;/TD&gt;&lt;TD&gt;543&lt;/TD&gt;&lt;TD&gt;1996&lt;/TD&gt;&lt;TD&gt;2647&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;5.Early BabyBoomers&lt;/TD&gt;&lt;TD&gt;128&lt;/TD&gt;&lt;TD&gt;510&lt;/TD&gt;&lt;TD&gt;2167&lt;/TD&gt;&lt;TD&gt;2805&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;6.Mid BabyBoomers&lt;/TD&gt;&lt;TD&gt;120&lt;/TD&gt;&lt;TD&gt;531&lt;/TD&gt;&lt;TD&gt;2882&lt;/TD&gt;&lt;TD&gt;3533&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Total&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;426&lt;/TD&gt;&lt;TD&gt;1858&lt;/TD&gt;&lt;TD&gt;8361&lt;/TD&gt;&lt;TD&gt;10645&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Upon reviewing the Summary of Failure Outcomes, there seems to be no significant difference between cohort=6 and the other cohorts.&amp;nbsp; Given this, 120 deaths out of a total of 3533 observations, the CIF for cohort=6 should not be 79%.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cifPlot5.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91271i51F575113445ED4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="cifPlot5.png" alt="cifPlot5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am reaching out to the community for insights into why the CIF for cohort=6 is producing such a high value.&amp;nbsp;I have included a snapshot of my dataset and the relevant portion of the output for your reference. I am wondering if there might be an issue with my code or if there are specific considerations for cohort=6 that I might be overlooking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the relevant portion of the OUTCIF output: [Include the portion of the output related to CIF for cohort=6]&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20231213112728.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91273i503BB05A8D2CE80E/image-size/large?v=v2&amp;amp;px=999" role="button" title="20231213112728.png" alt="20231213112728.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If anyone has encountered a similar issue or has any suggestions on troubleshooting, I would greatly appreciate your input.&amp;nbsp;Thank you for taking the time to read my post.&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;This is the code I'm using for CIF with competing risk:

proc lifetest data=Phreg12121   
plots=cif(test cl)  outcif=survival_data;
time T_FI1YR*outcome(0)/failcode; 			
strata cohort ;
*WEIGHT weight0_SD;
run;&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&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;&amp;nbsp;&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;&amp;nbsp;&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;</description>
      <pubDate>Wed, 13 Dec 2023 16:41:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Strange-result-of-Proc-lifetest-in-one-strata/m-p/907821#M45071</guid>
      <dc:creator>YYK273</dc:creator>
      <dc:date>2023-12-13T16:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Strange result of Proc lifetest in one strata</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Strange-result-of-Proc-lifetest-in-one-strata/m-p/907849#M45072</link>
      <description>&lt;P&gt;Shouldn't you be specifying a FAILCODE= value in your code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;proc lifetest data=Phreg12121   
plots=cif(test cl)  outcif=survival_data;
time T_FI1YR*outcome(0)/failcode; 			
strata cohort ;
*WEIGHT weight0_SD;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Dec 2023 17:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Strange-result-of-Proc-lifetest-in-one-strata/m-p/907849#M45072</guid>
      <dc:creator>OsoGris</dc:creator>
      <dc:date>2023-12-13T17:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Strange result of Proc lifetest in one strata</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Strange-result-of-Proc-lifetest-in-one-strata/m-p/908061#M45077</link>
      <description>&lt;P&gt;I appreciate your reply. Since the User’s Guide said If you specify the FAILCODE option without the equal sign, PROC LIFETEST produces a separate&amp;nbsp;analysis for each distinct event value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also added&amp;nbsp;&lt;CODE class=""&gt;failcode=2; &lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc lifetest data=phreg12121   
              plots=cif(test cl)  outcif=survival_data ;
   time T_FI1YR*outcome(0)/failcode=2; *format outcome eventf.;
			strata RACOHBYR ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, it still showed a high CIF for cohor=6, while the eventcode=1 showed normal CIFs.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cifPlot16.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91379i2481FB8D96882ADE/image-size/large?v=v2&amp;amp;px=999" role="button" title="cifPlot16.png" alt="cifPlot16.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cifPlot17.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91380iB65059A8C9E86306/image-size/large?v=v2&amp;amp;px=999" role="button" title="cifPlot17.png" alt="cifPlot17.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 19:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Strange-result-of-Proc-lifetest-in-one-strata/m-p/908061#M45077</guid>
      <dc:creator>YYK273</dc:creator>
      <dc:date>2023-12-14T19:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Strange result of Proc lifetest in one strata</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Strange-result-of-Proc-lifetest-in-one-strata/m-p/908064#M45079</link>
      <description>&lt;P&gt;I don't know the answer ... but in situations like this, it helps to plot the raw data for Cohort 6 and then separately plot the raw data for the other cohorts, using the same axes for all plots. Do you see any major differences in the raw data?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 20:19:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Strange-result-of-Proc-lifetest-in-one-strata/m-p/908064#M45079</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-12-14T20:19:19Z</dc:date>
    </item>
  </channel>
</rss>

