<?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: Conducting a competing risk survival analysis. Have a question about BASELINE COVARIATES= syntax in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Conducting-a-competing-risk-survival-analysis-Have-a-question/m-p/701857#M214939</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/293992"&gt;@alberto93&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My understanding is that the example uses only &lt;EM&gt;one&lt;/EM&gt; covariate (&lt;FONT face="courier new,courier"&gt;Disease&lt;/FONT&gt;) and if you have more than that, you'll include those combinations of covariate values in the COVARIATES= dataset (i.e., &lt;FONT face="courier new,courier"&gt;a.risk&lt;/FONT&gt; in your code) for which you want to see a CIF curve in the plot (and the corresponding estimates in the OUT= dataset, if any). So, a simplified version of your &lt;FONT face="courier new,courier"&gt;a.risk&lt;/FONT&gt; dataset might look like this:&lt;/P&gt;
&lt;PRE&gt;Obs    covset    age    sex    diabe

 1        1       60     M       0
 2        2       60     M       1
 3        3       60     F       1
 4        4       70     F       1&lt;/PRE&gt;
&lt;P&gt;Each of the four covariate sets would correspond to one curve in the CIF plot, one for 60-year-old men without diabetes at baseline, one for&amp;nbsp;60-year-old men with diabetes at baseline, etc., so you could compare some "typical" groups of patients in terms of their CIF. (I've introduced an optional variable &lt;FONT face="courier new,courier"&gt;covset&lt;/FONT&gt; as a convenient identifier for the combinations, cf. the automatic legend of the CIF plot.) Note that the CIF estimates for these groups can be calculated even if a particular combination of covariate values (e.g. &lt;FONT face="courier new,courier"&gt;age&lt;/FONT&gt; &lt;EM&gt;exactly&lt;/EM&gt; 60, etc.) doesn't actually occur in the data.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Nov 2020 16:54:09 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2020-11-26T16:54:09Z</dc:date>
    <item>
      <title>Conducting a competing risk survival analysis. Have a question about BASELINE COVARIATES= syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conducting-a-competing-risk-survival-analysis-Have-a-question/m-p/701783#M214922</link>
      <description>&lt;P&gt;Code below is the example from SAS GUIDE. I am working on an analysis referring to this example.&lt;/P&gt;&lt;P&gt;But this example only has two covariates affecting the event. But my model has several. How can I plot CIF plot using my variables?&lt;/P&gt;&lt;P&gt;All the variables are categorical except Age and avg_income.. Plz, help!!!!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*My code*/&lt;/P&gt;&lt;P&gt;proc phreg data=a.new_status plots(overlay=stratum)=cif;&lt;BR /&gt;class gout_case(ref='0') sex(ref='1')/param=ref;&lt;BR /&gt;model duration*status(0)=case age sex cvd diabe hyp dysli pd hl tbi avg_income/ eventcode(cox)=1;&lt;BR /&gt;baseline covariates=a.risk;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Example from SAS guide*/&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value DiseaseGroup 1='ALL'&lt;/P&gt;&lt;P&gt;2='AML-Low Risk'&lt;/P&gt;&lt;P&gt;3='AML-High Risk';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Bmt;&lt;/P&gt;&lt;P&gt;input Disease T Status @@;&lt;/P&gt;&lt;P&gt;label T='Disease-Free Survival in Days';&lt;/P&gt;&lt;P&gt;format Disease DiseaseGroup.;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 2081 0 1 1602 0 1 1496 0 1 1462 0 1 1433 0&lt;/P&gt;&lt;P&gt;1 1377 0 1 1330 0 1 996 0 1 226 0 1 1199 0&lt;/P&gt;&lt;P&gt;1 1111 0 1 530 0 1 1182 0 1 1167 0 1 418 2&lt;/P&gt;&lt;P&gt;1 383 1 1 276 2 1 104 1 1 609 1 1 172 2&lt;/P&gt;&lt;P&gt;1 487 2 1 662 1 1 194 2 1 230 1 1 526 2&lt;/P&gt;&lt;P&gt;1 122 2 1 129 1 1 74 1 1 122 1 1 86 2&lt;/P&gt;&lt;P&gt;1 466 2 1 192 1 1 109 1 1 55 1 1 1 2&lt;/P&gt;&lt;P&gt;1 107 2 1 110 1 1 332 2 2 2569 0 2 2506 0&lt;/P&gt;&lt;P&gt;2 2409 0 2 2218 0 2 1857 0 2 1829 0 2 1562 0&lt;/P&gt;&lt;P&gt;2 1470 0 2 1363 0 2 1030 0 2 860 0 2 1258 0&lt;/P&gt;&lt;P&gt;2 2246 0 2 1870 0 2 1799 0 2 1709 0 2 1674 0&lt;/P&gt;&lt;P&gt;2 1568 0 2 1527 0 2 1324 0 2 957 0 2 932 0&lt;/P&gt;&lt;P&gt;2 847 0 2 848 0 2 1850 0 2 1843 0 2 1535 0&lt;/P&gt;&lt;P&gt;2 1447 0 2 1384 0 2 414 2 2 2204 2 2 1063 2&lt;/P&gt;&lt;P&gt;2 481 2 2 105 2 2 641 2 2 390 2 2 288 2&lt;/P&gt;&lt;P&gt;2 421 1 2 79 2 2 748 1 2 486 1 2 48 2&lt;/P&gt;&lt;P&gt;2 272 1 2 1074 2 2 381 1 2 10 2 2 53 2&lt;/P&gt;&lt;P&gt;2 80 2 2 35 2 2 248 1 2 704 2 2 211 1&lt;/P&gt;&lt;P&gt;2 219 1 2 606 1 3 2640 0 3 2430 0 3 2252 0&lt;/P&gt;&lt;P&gt;3 2140 0 3 2133 0 3 1238 0 3 1631 0 3 2024 0&lt;/P&gt;&lt;P&gt;3 1345 0 3 1136 0 3 845 0 3 422 1 3 162 2&lt;/P&gt;&lt;P&gt;3 84 1 3 100 1 3 2 2 3 47 1 3 242 1&lt;/P&gt;&lt;P&gt;3 456 1 3 268 1 3 318 2 3 32 1 3 467 1&lt;/P&gt;&lt;P&gt;3 47 1 3 390 1 3 183 2 3 105 2 3 115 1&lt;/P&gt;&lt;P&gt;3 164 2 3 93 1 3 120 1 3 80 2 3 677 2&lt;/P&gt;&lt;P&gt;3 64 1 3 168 2 3 74 2 3 16 2 3 157 1&lt;/P&gt;&lt;P&gt;3 625 1 3 48 1 3 273 1 3 63 2 3 76 1&lt;/P&gt;&lt;P&gt;3 113 1 3 363 2&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Risk;&lt;/P&gt;&lt;P&gt;Disease=1; output;&lt;/P&gt;&lt;P&gt;Disease=2; output;&lt;/P&gt;&lt;P&gt;Disease=3; output;&lt;/P&gt;&lt;P&gt;format Disease DiseaseGroup.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;proc phreg data=Bmt plots(overlay=stratum)=cif;&lt;/P&gt;&lt;P&gt;class Disease (order=internal ref=first);&lt;/P&gt;&lt;P&gt;model T*Status(0)=Disease / eventcode=1;&lt;/P&gt;&lt;P&gt;Hazardratio 'Pairwise' Disease / diff=pairwise;&lt;/P&gt;&lt;P&gt;baseline covariates=Risk out=out1 cif=_all_ / seed=191;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods graphics on;&lt;BR /&gt;title 'Cause-specific Analysis';&lt;BR /&gt;proc phreg data=Bmt plots(overlay)=cif;&lt;BR /&gt;class Disease (order=internal ref=first);&lt;BR /&gt;model T*Status(0)=Disease / eventcode(cox)=1;&lt;BR /&gt;baseline covariates=Risk out=out2 cif=_all_;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 09:27:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conducting-a-competing-risk-survival-analysis-Have-a-question/m-p/701783#M214922</guid>
      <dc:creator>alberto93</dc:creator>
      <dc:date>2020-11-26T09:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Conducting a competing risk survival analysis. Have a question about BASELINE COVARIATES= syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conducting-a-competing-risk-survival-analysis-Have-a-question/m-p/701857#M214939</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/293992"&gt;@alberto93&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My understanding is that the example uses only &lt;EM&gt;one&lt;/EM&gt; covariate (&lt;FONT face="courier new,courier"&gt;Disease&lt;/FONT&gt;) and if you have more than that, you'll include those combinations of covariate values in the COVARIATES= dataset (i.e., &lt;FONT face="courier new,courier"&gt;a.risk&lt;/FONT&gt; in your code) for which you want to see a CIF curve in the plot (and the corresponding estimates in the OUT= dataset, if any). So, a simplified version of your &lt;FONT face="courier new,courier"&gt;a.risk&lt;/FONT&gt; dataset might look like this:&lt;/P&gt;
&lt;PRE&gt;Obs    covset    age    sex    diabe

 1        1       60     M       0
 2        2       60     M       1
 3        3       60     F       1
 4        4       70     F       1&lt;/PRE&gt;
&lt;P&gt;Each of the four covariate sets would correspond to one curve in the CIF plot, one for 60-year-old men without diabetes at baseline, one for&amp;nbsp;60-year-old men with diabetes at baseline, etc., so you could compare some "typical" groups of patients in terms of their CIF. (I've introduced an optional variable &lt;FONT face="courier new,courier"&gt;covset&lt;/FONT&gt; as a convenient identifier for the combinations, cf. the automatic legend of the CIF plot.) Note that the CIF estimates for these groups can be calculated even if a particular combination of covariate values (e.g. &lt;FONT face="courier new,courier"&gt;age&lt;/FONT&gt; &lt;EM&gt;exactly&lt;/EM&gt; 60, etc.) doesn't actually occur in the data.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 16:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conducting-a-competing-risk-survival-analysis-Have-a-question/m-p/701857#M214939</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-11-26T16:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Conducting a competing risk survival analysis. Have a question about BASELINE COVARIATES= syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conducting-a-competing-risk-survival-analysis-Have-a-question/m-p/701944#M214976</link>
      <description>&lt;P&gt;Thank you for your smart and kind answer!!&lt;/P&gt;&lt;P&gt;You are meaning that each row becomes a line in CIF graph?&lt;/P&gt;&lt;P&gt;What if I want to plot CIF only with lines status=0, status=1. status=2 adjusting with other variables included in the previous question?&lt;/P&gt;&lt;P&gt;I'm trying to check the competing risk between certain disease and death.&lt;/P&gt;&lt;P&gt;So status=1 means having a disease, and status=2 means death before having a disease.&lt;/P&gt;&lt;P&gt;I'm getting confused...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the graph should be looking like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CIF example.png" style="width: 488px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52032iBC9A04AAFDB32A86/image-size/large?v=v2&amp;amp;px=999" role="button" title="CIF example.png" alt="CIF example.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you plz help?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":loudly_crying_face:"&gt;😭&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sorry to bother you but if you don't mind, please also write code for me. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 01:47:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conducting-a-competing-risk-survival-analysis-Have-a-question/m-p/701944#M214976</guid>
      <dc:creator>alberto93</dc:creator>
      <dc:date>2020-11-27T01:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Conducting a competing risk survival analysis. Have a question about BASELINE COVARIATES= syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conducting-a-competing-risk-survival-analysis-Have-a-question/m-p/701977#M214991</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/293992"&gt;@alberto93&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;You are meaning that each row becomes a line in CIF graph?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, each row in the COVARIATES= dataset adds one CIF curve to the plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/293992"&gt;@alberto93&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What if I want to plot CIF only with lines status=0, status=1. status=2 adjusting with other variables included in the previous question?&lt;/P&gt;
&lt;P&gt;I'm trying to check the competing risk between certain disease and death.&lt;/P&gt;
&lt;P&gt;So status=1 means having a disease, and status=2 means death before having a disease.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your variable &lt;FONT face="courier new,courier"&gt;status&lt;/FONT&gt; is not a covariate, hence not suitable for the COVARIATES= dataset. If covariates such as &lt;FONT face="courier new,courier"&gt;age&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;sex&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;diabe&lt;/FONT&gt;, etc. have an impact on the time to disease or death, but you don't want separate CIF curves for different covariate sets, you may want to use "&lt;SPAN&gt;the reference levels for the CLASS variables and the average values for the continuous variables"&lt;/SPAN&gt; (according to the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_phreg_syntax03.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;documentation of the BASELINE statement&lt;/A&gt;) or maybe the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_phreg_syntax03.htm&amp;amp;locale=en#statug.phreg.phrbasdiradj" target="_blank" rel="noopener"&gt;DIRADJ option&lt;/A&gt;. I've never done this particular type of survival analysis, so can't be more specific, sorry. Good luck!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 09:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conducting-a-competing-risk-survival-analysis-Have-a-question/m-p/701977#M214991</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-11-27T09:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Conducting a competing risk survival analysis. Have a question about BASELINE COVARIATES= syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conducting-a-competing-risk-survival-analysis-Have-a-question/m-p/809638#M319285</link>
      <description>&lt;P&gt;Hi, may I know if you have solved the problem? I've met the same question and I don't know how to add&lt;/P&gt;&lt;P&gt;more categorical variables to the model and still show only several groups in the CIF curve. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 09:49:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conducting-a-competing-risk-survival-analysis-Have-a-question/m-p/809638#M319285</guid>
      <dc:creator>Well21</dc:creator>
      <dc:date>2022-04-25T09:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Conducting a competing risk survival analysis. Have a question about BASELINE COVARIATES= syntax</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conducting-a-competing-risk-survival-analysis-Have-a-question/m-p/809640#M319287</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/415593"&gt;@Well21&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/293992"&gt;@alberto93&lt;/a&gt;&amp;nbsp;doesn't reply in this old thread (I haven't worked with CIF curves since then), I suggest that you open a new thread describing your problem, ideally in the &lt;A href="https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures" target="_blank" rel="noopener"&gt;Statistical Procedures forum&lt;/A&gt;. (You can include a &lt;A href="https://communities.sas.com/t5/SAS-Programming/Conducting-a-competing-risk-survival-analysis-Have-a-question/m-p/809638" target="_blank" rel="noopener"&gt;link to this old thread&lt;/A&gt; if needed.) Thus you will reach a much larger audience. Good luck!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 10:09:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conducting-a-competing-risk-survival-analysis-Have-a-question/m-p/809640#M319287</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-04-25T10:09:01Z</dc:date>
    </item>
  </channel>
</rss>

