<?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 Hazard ratio for different groups with PHREG in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Hazard-ratio-for-different-groups-with-PHREG/m-p/740072#M35962</link>
    <description>&lt;P&gt;There are 3 groups. And I want to get the hazard ratio for group 1 vs group 3, and group 2 vs group 3. The results that are generated from below 2 methods are not the same. So should I better put all 3 groups into PHREG, and set group 3 as reference level, Or should I select 2 groups each time when I execute PHREG procedure ? Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Method 1&lt;/STRONG&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc phreg data = xx alpha=0.05;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; class trt (ref="3");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; model aval*cnsr(1)=trt /ties=exact;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; hazardratio trt / diff=all;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Method 2&lt;/STRONG&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc phreg data = xx(where=(trt in (1,3) )) alpha=0.05;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; class trt (ref="3");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; model aval*cnsr(1)=trt /ties=exact;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; hazardratio trt ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc phreg data = xx(where=(trt in (2,3) )) alpha=0.05;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; class trt (ref="3");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; model aval*cnsr(1)=trt /ties=exact;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; hazardratio trt ;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Mon, 10 May 2021 02:01:12 GMT</pubDate>
    <dc:creator>Lulu09</dc:creator>
    <dc:date>2021-05-10T02:01:12Z</dc:date>
    <item>
      <title>Hazard ratio for different groups with PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hazard-ratio-for-different-groups-with-PHREG/m-p/740072#M35962</link>
      <description>&lt;P&gt;There are 3 groups. And I want to get the hazard ratio for group 1 vs group 3, and group 2 vs group 3. The results that are generated from below 2 methods are not the same. So should I better put all 3 groups into PHREG, and set group 3 as reference level, Or should I select 2 groups each time when I execute PHREG procedure ? Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Method 1&lt;/STRONG&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc phreg data = xx alpha=0.05;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; class trt (ref="3");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; model aval*cnsr(1)=trt /ties=exact;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; hazardratio trt / diff=all;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Method 2&lt;/STRONG&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc phreg data = xx(where=(trt in (1,3) )) alpha=0.05;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; class trt (ref="3");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; model aval*cnsr(1)=trt /ties=exact;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; hazardratio trt ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc phreg data = xx(where=(trt in (2,3) )) alpha=0.05;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; class trt (ref="3");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; model aval*cnsr(1)=trt /ties=exact;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; hazardratio trt ;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 02:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hazard-ratio-for-different-groups-with-PHREG/m-p/740072#M35962</guid>
      <dc:creator>Lulu09</dc:creator>
      <dc:date>2021-05-10T02:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hazard ratio for different groups with PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hazard-ratio-for-different-groups-with-PHREG/m-p/740118#M35966</link>
      <description>&lt;P&gt;I think it is advisable to keep all three treatments in one model. If you want the differences with the reference category you can use the option DIFF=REF on the HAZARDRATIO statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 08:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hazard-ratio-for-different-groups-with-PHREG/m-p/740118#M35966</guid>
      <dc:creator>OsoGris</dc:creator>
      <dc:date>2021-05-10T08:52:20Z</dc:date>
    </item>
  </channel>
</rss>

