<?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: Kaplan Meier survival curves by age groups crossed in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-Meier-survival-curves-by-age-groups-crossed/m-p/638442#M189851</link>
    <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=15.1&amp;amp;docsetTarget=statug_phreg_examples06.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=15.1&amp;amp;docsetTarget=statug_phreg_examples06.htm&amp;amp;locale=en&lt;/A&gt;&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/132289"&gt;@Cruise&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;how do you make age a time dependent variable? my date variable in the data is 'date' by day unit, so: age(10-year group)*date as an interaction? or use the agecat*date?&lt;BR /&gt;Bear with me please, if my wild guess doesn't make sense &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2020 18:52:04 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-04-08T18:52:04Z</dc:date>
    <item>
      <title>Kaplan Meier survival curves by age groups crossed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-Meier-survival-curves-by-age-groups-crossed/m-p/638379#M189833</link>
      <description>&lt;P&gt;Hi Folks:&lt;/P&gt;
&lt;P&gt;I'm conducting survival analyses and agecat: one of categorical variables crossed on the KM survival curves. Does it invalidate the assumption of proportional hazard and stop me for a Cox proportional HM? two other categorical variables: sex and comorb (1,0) don't have this issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and help.&amp;nbsp;&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="KM_agecat.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38024iF46CB05EAF35731A/image-size/large?v=v2&amp;amp;px=999" role="button" title="KM_agecat.png" alt="KM_agecat.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="proc phreg.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38035i02D3C59D27747326/image-size/large?v=v2&amp;amp;px=999" role="button" title="proc phreg.png" alt="proc phreg.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=pti4;
by sex agecat comorb; run;  
proc phreg data=pti4;
class sex1(ref='1') agecat(ref='2') comorb(ref='0')/param=ref order=internal;
model duration*vital_status(0)= sex1 agecat comorb/ties=Efron;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Apr 2020 16:53:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-Meier-survival-curves-by-age-groups-crossed/m-p/638379#M189833</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2020-04-08T16:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan Meier survival curves by age groups crossed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-Meier-survival-curves-by-age-groups-crossed/m-p/638405#M189838</link>
      <description>&lt;P&gt;It does invalidate the assumption, but your 90+ group being much smaller is causing the issue. Can you treat age as continuous instead?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 17:31:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-Meier-survival-curves-by-age-groups-crossed/m-p/638405#M189838</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-04-08T17:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan Meier survival curves by age groups crossed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-Meier-survival-curves-by-age-groups-crossed/m-p/638411#M189839</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the age variable is categorical to begin with such as: 0, 10s, 20s, 30s, 40s, 50s, 60s, 70s, 80s, 90s and 10s. I have no events until 30s and very few events in some age groups. See attached. In the snippet, how agecat is created from 10-year age group.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if age1=. then agecat=.; 
if age1 in (0,1,2) then agecat=1; else
if age1 in (3,4) then agecat=2; else
if age1 in (5,6) then agecat=3; else
if age1 in (7,8) then agecat=4; 
if age1 in (9,10) then agecat=5; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="violate.png" style="width: 431px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38053i255BEAB94FB9386C/image-size/large?v=v2&amp;amp;px=999" role="button" title="violate.png" alt="violate.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 17:42:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-Meier-survival-curves-by-age-groups-crossed/m-p/638411#M189839</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2020-04-08T17:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan Meier survival curves by age groups crossed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-Meier-survival-curves-by-age-groups-crossed/m-p/638417#M189842</link>
      <description>&lt;P&gt;It seems like that's an arbitrary decision then. In that case I'd like recommend using 80+ instead of 90+ and I suspect that will help. Depending on what you're measuring the other usual suggestion is to make it a time dependent covariate, which sort of makes sense for age since it does not stay the same over time anyways.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 17:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-Meier-survival-curves-by-age-groups-crossed/m-p/638417#M189842</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-04-08T17:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan Meier survival curves by age groups crossed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-Meier-survival-curves-by-age-groups-crossed/m-p/638421#M189845</link>
      <description>how do you make age a time dependent variable? my date variable in the data is 'date' by day unit, so: age(10-year group)*date as an interaction? or use the agecat*date?&lt;BR /&gt;Bear with me please, if my wild guess doesn't make sense &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 08 Apr 2020 18:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-Meier-survival-curves-by-age-groups-crossed/m-p/638421#M189845</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2020-04-08T18:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan Meier survival curves by age groups crossed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-Meier-survival-curves-by-age-groups-crossed/m-p/638429#M189848</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regrouping age as below solved the crossing in the age-groups in KM curves.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if age1=. then agec=.; 
if age1 in (0,1,2) then agec=1; else
if age1 in (3,4) then agec=2; else
if age1 in (5,6) then agec=3; else
if age1 in (7,8,9,10) then agec=4; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="violate.png" style="width: 432px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38055i5AC9F2F5796921C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="violate.png" alt="violate.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="age regrouped.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38054i99D68DCACE3C5244/image-size/large?v=v2&amp;amp;px=999" role="button" title="age regrouped.png" alt="age regrouped.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 18:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-Meier-survival-curves-by-age-groups-crossed/m-p/638429#M189848</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2020-04-08T18:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan Meier survival curves by age groups crossed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-Meier-survival-curves-by-age-groups-crossed/m-p/638442#M189851</link>
      <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=15.1&amp;amp;docsetTarget=statug_phreg_examples06.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=15.1&amp;amp;docsetTarget=statug_phreg_examples06.htm&amp;amp;locale=en&lt;/A&gt;&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/132289"&gt;@Cruise&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;how do you make age a time dependent variable? my date variable in the data is 'date' by day unit, so: age(10-year group)*date as an interaction? or use the agecat*date?&lt;BR /&gt;Bear with me please, if my wild guess doesn't make sense &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 18:52:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-Meier-survival-curves-by-age-groups-crossed/m-p/638442#M189851</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-04-08T18:52:04Z</dc:date>
    </item>
  </channel>
</rss>

