<?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: How do I compare two hazard ratios across exposure groups in proc phreg? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-two-hazard-ratios-across-exposure-groups-in/m-p/637874#M30510</link>
    <description>&lt;P&gt;Just going off of the documentation, I think you need two HAZARDRATIO statements.&amp;nbsp; Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;hazardratio sex/diff=ALL;
hazardratio RaceandoriginrecodeNHNWNHBNHAIA/diff=ALL;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Mon, 06 Apr 2020 15:40:38 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2020-04-06T15:40:38Z</dc:date>
    <item>
      <title>How do I compare two hazard ratios across exposure groups in proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-two-hazard-ratios-across-exposure-groups-in/m-p/637754#M30504</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is there a way to see if there is a significant difference in the hazard ratios between age groups? (see table below or attached pdf). For example, I want to know if there is a significant difference in the HR for sex between 20-49 and 50+ year olds. And the same thing for my Race variable.&lt;/P&gt;&lt;P&gt;See below for the code I used to obtain these values as well).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mkit8_1-1586127633467.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37937i775AB39BB3038BA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mkit8_1-1586127633467.png" alt="mkit8_1-1586127633467.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=new2
out=new3;
by age_recode_with_1_year_olds;

proc phreg data = new3;
class sex (ref='Male') RaceandoriginrecodeNHWNHBNHAIA (ref='Non-Hispanic White')
   Summary_stage_2000_1998 (ref='Localized')Primary_Site_labeled (ref='Proximal Colon') Grade (ref='Grade I')
   Yost_quintile_registry_based (ref='Group 5');
model Survival_months*SEERcausespecificdeathclassifi(0,8) = age_recode_with_1_year_olds sex RaceandoriginrecodeNHWNHBNHAIA Summary_stage_2000_1998 Primary_Site_labeled Grade
   Yost_quintile_registry_based / rl;
by age_recode_with_1_year_olds;
hazardratio age_recode_with_1_year_olds / DIFF=ALL;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 23:08:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-two-hazard-ratios-across-exposure-groups-in/m-p/637754#M30504</guid>
      <dc:creator>mkit8</dc:creator>
      <dc:date>2020-04-05T23:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare two hazard ratios across exposure groups in proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-two-hazard-ratios-across-exposure-groups-in/m-p/637874#M30510</link>
      <description>&lt;P&gt;Just going off of the documentation, I think you need two HAZARDRATIO statements.&amp;nbsp; Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;hazardratio sex/diff=ALL;
hazardratio RaceandoriginrecodeNHNWNHBNHAIA/diff=ALL;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 15:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-two-hazard-ratios-across-exposure-groups-in/m-p/637874#M30510</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-06T15:40:38Z</dc:date>
    </item>
  </channel>
</rss>

