<?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: Default reference group in SAS proc in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Default-reference-group-in-SAS-proc/m-p/581950#M165453</link>
    <description>&lt;P&gt;When you switch the two levels of a dichotomous explanatory variable (used in a CLASS statement), the original hazard ratio &lt;EM&gt;h&lt;/EM&gt; becomes 1/&lt;EM&gt;h&lt;/EM&gt;. Similarly, the confidence limits (CL) of &lt;EM&gt;h&lt;/EM&gt; are inverted: The new lower CL is 1/(old upper CL) and the new upper CL is&amp;nbsp;1/(old lower CL). Also, the sign of the parameter estimate, if positive or negative, changes (but not its absolute value, standard error, Chi-Square statistic and p-value).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, in your example &lt;EM&gt;h&lt;/EM&gt;=1 (as a consequence, the upper CL is 1/(lower CL)) and the parameter estimate is 0 so that none of the changes described above is visible.&lt;/P&gt;</description>
    <pubDate>Sat, 17 Aug 2019 18:45:15 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2019-08-17T18:45:15Z</dc:date>
    <item>
      <title>Default reference group in SAS proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Default-reference-group-in-SAS-proc/m-p/581944#M165447</link>
      <description>&lt;P&gt;Hi Folks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In PROC PHREG below where METHOD is binary variable (1,0) does SAS take 1 over 0 or 0 over 1 to calculate the hazard ratio reported in the annotated output shown below?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC PHREG DATA=MYDATA; 
MODEL DURATION*DEATH(0)=METHOD;      
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PROC PHREG.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31828i022B9E86185972E5/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;</description>
      <pubDate>Sat, 17 Aug 2019 17:31:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Default-reference-group-in-SAS-proc/m-p/581944#M165447</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2019-08-17T17:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Default reference group in SAS proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Default-reference-group-in-SAS-proc/m-p/581947#M165450</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132289"&gt;@Cruise&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without a &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.3&amp;amp;docsetTarget=statug_phreg_syntax06.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;CLASS statement&lt;/A&gt;, METHOD is treated as a continuous variable, in which case the &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.3&amp;amp;docsetTarget=statug_phreg_details24.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;hazard ratio&lt;/A&gt; refers to an increase by one unit. For a binary variable, of course, this is equivalent to a hazard ratio of level 1 vs. level 0. Categorical explanatory variables are usually named in a CLASS statement where you can use the &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_phreg_syntax06.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en#statug.phreg.classref" target="_blank" rel="noopener"&gt;REF= option&lt;/A&gt; to specify the reference level explicitly and thus avoid any ambiguities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your sample output shows one of the rare cases where the "direction" (1 vs. 0 or 0 vs. 1) has no impact on the results (hazard ratio 1).&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 18:24:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Default-reference-group-in-SAS-proc/m-p/581947#M165450</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-08-17T18:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Default reference group in SAS proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Default-reference-group-in-SAS-proc/m-p/581948#M165451</link>
      <description>Can you please elaborate what made the case one of the rare cases where the "direction" (1 vs. 0 or 0 vs. 1) ?</description>
      <pubDate>Sat, 17 Aug 2019 18:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Default-reference-group-in-SAS-proc/m-p/581948#M165451</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2019-08-17T18:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Default reference group in SAS proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Default-reference-group-in-SAS-proc/m-p/581950#M165453</link>
      <description>&lt;P&gt;When you switch the two levels of a dichotomous explanatory variable (used in a CLASS statement), the original hazard ratio &lt;EM&gt;h&lt;/EM&gt; becomes 1/&lt;EM&gt;h&lt;/EM&gt;. Similarly, the confidence limits (CL) of &lt;EM&gt;h&lt;/EM&gt; are inverted: The new lower CL is 1/(old upper CL) and the new upper CL is&amp;nbsp;1/(old lower CL). Also, the sign of the parameter estimate, if positive or negative, changes (but not its absolute value, standard error, Chi-Square statistic and p-value).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, in your example &lt;EM&gt;h&lt;/EM&gt;=1 (as a consequence, the upper CL is 1/(lower CL)) and the parameter estimate is 0 so that none of the changes described above is visible.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 18:45:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Default-reference-group-in-SAS-proc/m-p/581950#M165453</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-08-17T18:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Default reference group in SAS proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Default-reference-group-in-SAS-proc/m-p/581951#M165454</link>
      <description>Thanks for your explanation. This helped!</description>
      <pubDate>Sat, 17 Aug 2019 18:48:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Default-reference-group-in-SAS-proc/m-p/581951#M165454</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2019-08-17T18:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Default reference group in SAS proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Default-reference-group-in-SAS-proc/m-p/581961#M165456</link>
      <description>I always recommend using HazardRatio statements to interpret your HR so that you know exactly what comparisons it's making.</description>
      <pubDate>Sat, 17 Aug 2019 19:17:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Default-reference-group-in-SAS-proc/m-p/581961#M165456</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-17T19:17:27Z</dc:date>
    </item>
  </channel>
</rss>

