<?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 PROC PHREG survival interactiuon between multiple groups in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG-survival-interactiuon-between-multiple-groups/m-p/478519#M24906</link>
    <description>&lt;P&gt;Hi SAS experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm conducting survival analysis where drugs that patients received are categorized to broad groups of biologic, chemo, hormonal, immuno and antibiotic (trt_other) in various combinations. My adjusted model produced Hazard Ratios for each treatment categories as shown in image below. However, I'm more interested in interactions of these five categorical treatments since treatments mostly had been prescribed in combinations. Contrast supposed to be used?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any comments, hints or direct helps?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your time!&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="phreg.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21798i65C2B26EFB86FC36/image-size/large?v=v2&amp;amp;px=999" role="button" title="phreg.png" alt="phreg.png" /&gt;&lt;/span&gt;&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=" language-sas"&gt;data model;
input id duration vital_status1	trt_bio	trt_chemo trt_hormone trt_immuno trt_other;
cards;
1	701	0	0	1	1	1	1
2	2123	1	1	1	0	0	0
3	2330	0	0	0	1	0	0
4	2513	1	0	1	0	0	0
5	57	0	0	1	0	0	0
6	1170	1	0	1	1	0	0
7	4032	1	1	1	0	1	0
8	2302	1	0	0	1	0	0
9	1230	0	0	1	0	1	0
10	1876	0	0	1	0	0	0
11	1503	0	0	1	1	0	0
12	2886	1	1	1	0	0	0
13	3941	1	0	0	1	0	0
14	584	0	0	1	0	0	0
15	1812	1	0	1	0	1	0
16	1025	0	0	1	1	0	1
17	3759	1	0	1	0	0	0
18	995	0	0	1	0	0	0
19	1297	1	1	1	0	0	0
20	770	0	0	1	0	0	1
21	263	0	0	1	1	0	1
22	472	1	0	1	0	1	0
23	490	1	0	1	1	0	0
24	1322	1	0	1	0	0	0
25	1940	0	0	1	0	0	0
26	103	0	0	1	0	0	0
27	887	0	0	1	1	0	0
28	2827	1	0	1	0	0	1
29	2251	1	1	0	0	0	1
30	3537	1	0	1	0	0	0
31	513	0	0	1	0	0	0
32	336	0	0	1	1	0	0
33	1402	0	0	1	0	0	0
34	2974	1	0	0	1	1	0
35	4248	1	1	1	0	0	1
36	3166	1	0	1	0	0	0
37	2053	1	0	1	0	0	0
38	2126	1	0	0	1	0	0
39	2236	0	0	1	0	0	0
40	898	1	0	1	0	0	0
41	645	0	0	1	0	0	0
42	113	0	1	0	1	0	0
;

proc phreg data=model; 
class trt_bio(ref='1') trt_chemo(ref='1') 
      trt_hormone(ref='1') trt_immuno(ref='1') 
      trt_other(ref='1') /param=ref order=internal;
model duration*vital_status1(1)= trt_bio trt_chemo trt_hormone trt_immuno
      trt_other/ties=Efron rl;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jul 2018 13:11:35 GMT</pubDate>
    <dc:creator>Cruise</dc:creator>
    <dc:date>2018-07-17T13:11:35Z</dc:date>
    <item>
      <title>PROC PHREG survival interactiuon between multiple groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG-survival-interactiuon-between-multiple-groups/m-p/478519#M24906</link>
      <description>&lt;P&gt;Hi SAS experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm conducting survival analysis where drugs that patients received are categorized to broad groups of biologic, chemo, hormonal, immuno and antibiotic (trt_other) in various combinations. My adjusted model produced Hazard Ratios for each treatment categories as shown in image below. However, I'm more interested in interactions of these five categorical treatments since treatments mostly had been prescribed in combinations. Contrast supposed to be used?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any comments, hints or direct helps?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your time!&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="phreg.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21798i65C2B26EFB86FC36/image-size/large?v=v2&amp;amp;px=999" role="button" title="phreg.png" alt="phreg.png" /&gt;&lt;/span&gt;&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=" language-sas"&gt;data model;
input id duration vital_status1	trt_bio	trt_chemo trt_hormone trt_immuno trt_other;
cards;
1	701	0	0	1	1	1	1
2	2123	1	1	1	0	0	0
3	2330	0	0	0	1	0	0
4	2513	1	0	1	0	0	0
5	57	0	0	1	0	0	0
6	1170	1	0	1	1	0	0
7	4032	1	1	1	0	1	0
8	2302	1	0	0	1	0	0
9	1230	0	0	1	0	1	0
10	1876	0	0	1	0	0	0
11	1503	0	0	1	1	0	0
12	2886	1	1	1	0	0	0
13	3941	1	0	0	1	0	0
14	584	0	0	1	0	0	0
15	1812	1	0	1	0	1	0
16	1025	0	0	1	1	0	1
17	3759	1	0	1	0	0	0
18	995	0	0	1	0	0	0
19	1297	1	1	1	0	0	0
20	770	0	0	1	0	0	1
21	263	0	0	1	1	0	1
22	472	1	0	1	0	1	0
23	490	1	0	1	1	0	0
24	1322	1	0	1	0	0	0
25	1940	0	0	1	0	0	0
26	103	0	0	1	0	0	0
27	887	0	0	1	1	0	0
28	2827	1	0	1	0	0	1
29	2251	1	1	0	0	0	1
30	3537	1	0	1	0	0	0
31	513	0	0	1	0	0	0
32	336	0	0	1	1	0	0
33	1402	0	0	1	0	0	0
34	2974	1	0	0	1	1	0
35	4248	1	1	1	0	0	1
36	3166	1	0	1	0	0	0
37	2053	1	0	1	0	0	0
38	2126	1	0	0	1	0	0
39	2236	0	0	1	0	0	0
40	898	1	0	1	0	0	0
41	645	0	0	1	0	0	0
42	113	0	1	0	1	0	0
;

proc phreg data=model; 
class trt_bio(ref='1') trt_chemo(ref='1') 
      trt_hormone(ref='1') trt_immuno(ref='1') 
      trt_other(ref='1') /param=ref order=internal;
model duration*vital_status1(1)= trt_bio trt_chemo trt_hormone trt_immuno
      trt_other/ties=Efron rl;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 13:11:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG-survival-interactiuon-between-multiple-groups/m-p/478519#M24906</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-07-17T13:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PHREG survival interactiuon between multiple groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG-survival-interactiuon-between-multiple-groups/m-p/482175#M25067</link>
      <description>&lt;P&gt;I don't think you need the CLASS statement at all here since you're working with binary variables.&amp;nbsp; Don't you actually want zero as the reference for these?&amp;nbsp; About the interactions, there are all sorts of handy shortcuts.&amp;nbsp; For instance, if you have 4 variables (A, B, C, D) and you want all two-way interactions between them (plus the main effects, as usual), you can simply do this in the MODEL statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MODEL time * event(0) = A | B | C | D&amp;nbsp;@2 ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where&amp;nbsp;@2 indicates all two-way interactions, i.e.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A*B A*C A*D B*C B*D C*D&amp;nbsp;&lt;/P&gt;&lt;P&gt;plus the main effects&lt;/P&gt;&lt;P&gt;A B C D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All described much better here (for GLM, but you can do the same in PHREG):&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glm_sect027.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glm_sect027.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jul 2018 14:02:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG-survival-interactiuon-between-multiple-groups/m-p/482175#M25067</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2018-07-28T14:02:02Z</dc:date>
    </item>
  </channel>
</rss>

