<?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 make the HAZARDRATIO  statement use the same reference level as the CLASS statement? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-make-the-HAZARDRATIO-statement-use-the-same-reference/m-p/537170#M27025</link>
    <description>&lt;P&gt;Try the DIFF=REF option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hazardratio protons/diff=ref;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2019 19:53:59 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2019-02-20T19:53:59Z</dc:date>
    <item>
      <title>How do I make the HAZARDRATIO  statement use the same reference level as the CLASS statement?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-make-the-HAZARDRATIO-statement-use-the-same-reference/m-p/537164#M27024</link>
      <description>&lt;P&gt;I'm using the competing risk model with PHREG on SAS 9.4 and want to obtain the 95% confidence interval for the hazard ratio of a specific variable. In the CLASS statement I specify the reference level I want, but then when I use the HAZARDRATIO&amp;nbsp; statement to get the 95% CI, it uses the wrong reference level.&amp;nbsp; How do I make the HAZARDRATIO&amp;nbsp; statement use the same reference level as the CLASS statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc phreg data=hcc_nonsbrt;
class protons (ref="No");
model fu_time_local_failure*local_failure_cr(0)=protons / eventcode=1;
hazardratio protons ;
format protons binaryf.;
run;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hazard ratio reference level.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27310iC0CAD77307CAF457/image-size/large?v=v2&amp;amp;px=999" role="button" title="hazard ratio reference level.PNG" alt="hazard ratio reference level.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 19:33:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-make-the-HAZARDRATIO-statement-use-the-same-reference/m-p/537164#M27024</guid>
      <dc:creator>jahanm</dc:creator>
      <dc:date>2019-02-20T19:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make the HAZARDRATIO  statement use the same reference level as the CLASS statement?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-make-the-HAZARDRATIO-statement-use-the-same-reference/m-p/537170#M27025</link>
      <description>&lt;P&gt;Try the DIFF=REF option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hazardratio protons/diff=ref;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 19:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-make-the-HAZARDRATIO-statement-use-the-same-reference/m-p/537170#M27025</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2019-02-20T19:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make the HAZARDRATIO  statement use the same reference level as the CLASS statement?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-make-the-HAZARDRATIO-statement-use-the-same-reference/m-p/537177#M27027</link>
      <description>It worked! Thanks.</description>
      <pubDate>Wed, 20 Feb 2019 20:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-make-the-HAZARDRATIO-statement-use-the-same-reference/m-p/537177#M27027</guid>
      <dc:creator>jahanm</dc:creator>
      <dc:date>2019-02-20T20:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make the HAZARDRATIO  statement use the same reference level as the CLASS statement?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-make-the-HAZARDRATIO-statement-use-the-same-reference/m-p/537193#M27028</link>
      <description>You likely also want PARAM =REF in your class statement as well, otherwise it uses GLM coding.</description>
      <pubDate>Wed, 20 Feb 2019 20:47:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-make-the-HAZARDRATIO-statement-use-the-same-reference/m-p/537193#M27028</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-20T20:47:57Z</dc:date>
    </item>
  </channel>
</rss>

