<?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 KM curve control vs multiple groups comparison in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/KM-curve-control-vs-multiple-groups-comparison/m-p/877774#M346761</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to compare the survival estimates of multiple groups to a control group. Eg I have groups A, B, C, and D. I want to see if there is a difference between A vs BCD.&amp;nbsp; This is the current code I have, however, I don't want a complete pairwise comparison (A v B, B v D, etc) just the control compared to the combined 3 groups (A vs BCD).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc lifetest plots=survival (atrisk) data=E2y; where AGE &amp;gt; 18;&lt;BR /&gt;time PTIMEYrsT10y*PSTATUST10y(0);&lt;BR /&gt;strata Group/adjust=sidak;&lt;BR /&gt;label PTIMEYrsT10y='Years Post Treatment';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2023 20:10:58 GMT</pubDate>
    <dc:creator>madjei</dc:creator>
    <dc:date>2023-05-26T20:10:58Z</dc:date>
    <item>
      <title>KM curve control vs multiple groups comparison</title>
      <link>https://communities.sas.com/t5/SAS-Programming/KM-curve-control-vs-multiple-groups-comparison/m-p/877774#M346761</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to compare the survival estimates of multiple groups to a control group. Eg I have groups A, B, C, and D. I want to see if there is a difference between A vs BCD.&amp;nbsp; This is the current code I have, however, I don't want a complete pairwise comparison (A v B, B v D, etc) just the control compared to the combined 3 groups (A vs BCD).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc lifetest plots=survival (atrisk) data=E2y; where AGE &amp;gt; 18;&lt;BR /&gt;time PTIMEYrsT10y*PSTATUST10y(0);&lt;BR /&gt;strata Group/adjust=sidak;&lt;BR /&gt;label PTIMEYrsT10y='Years Post Treatment';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 20:10:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/KM-curve-control-vs-multiple-groups-comparison/m-p/877774#M346761</guid>
      <dc:creator>madjei</dc:creator>
      <dc:date>2023-05-26T20:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: KM curve control vs multiple groups comparison</title>
      <link>https://communities.sas.com/t5/SAS-Programming/KM-curve-control-vs-multiple-groups-comparison/m-p/877796#M346772</link>
      <description>&lt;P&gt;I would start with a custom format that assigns the values of the variable into the groups needed.&lt;/P&gt;
&lt;PRE&gt;Proc format;
value GroupA_BCD
'A' = 'A'
'B','C','D' = 'BCD'
;
run;&lt;/PRE&gt;
&lt;P&gt;Then modify the code to use the format.&lt;/P&gt;
&lt;PRE&gt;proc lifetest plots=survival (atrisk) data=E2y; where AGE &amp;gt; 18;
time PTIMEYrsT10y*PSTATUST10y(0);
strata Group/adjust=sidak;
label PTIMEYrsT10y='Years Post Treatment';
format group $GroupA_BCD. ;
run;&lt;/PRE&gt;
&lt;P&gt;Formats are a very flexible way to create groups "on the fly". The analysis, reporting and graphing procedures will recognize groups formed using formats from underlying values.&lt;/P&gt;
&lt;P&gt;So you could make multiple formats and just change the format for different analysis.&lt;/P&gt;
&lt;P&gt;Note that if the values are character the name of the format, on the VALUE statement, starts with a $. Since formats treat digits at the end as the number of display positions you cannot end the name of the format in a digit and otherwise have the same basic naming conventions as variable names, start with a letter or _ and follow with letters, digits (except at the end) or the _ .&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 21:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/KM-curve-control-vs-multiple-groups-comparison/m-p/877796#M346772</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-26T21:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: KM curve control vs multiple groups comparison</title>
      <link>https://communities.sas.com/t5/SAS-Programming/KM-curve-control-vs-multiple-groups-comparison/m-p/877799#M346775</link>
      <description>Awesome, thank you&lt;BR /&gt;</description>
      <pubDate>Fri, 26 May 2023 22:16:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/KM-curve-control-vs-multiple-groups-comparison/m-p/877799#M346775</guid>
      <dc:creator>madjei</dc:creator>
      <dc:date>2023-05-26T22:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: KM curve control vs multiple groups comparison</title>
      <link>https://communities.sas.com/t5/SAS-Programming/KM-curve-control-vs-multiple-groups-comparison/m-p/877800#M346776</link>
      <description>Thank you!</description>
      <pubDate>Fri, 26 May 2023 22:16:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/KM-curve-control-vs-multiple-groups-comparison/m-p/877800#M346776</guid>
      <dc:creator>madjei</dc:creator>
      <dc:date>2023-05-26T22:16:18Z</dc:date>
    </item>
  </channel>
</rss>

