<?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 Reverse categories in hazardratio statement in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reverse-categories-in-hazardratio-statement/m-p/923433#M83390</link>
    <description>&lt;P&gt;I have following statements in PROC PHREG (please see below), the meaning does not matter. The purpose is so the output shows hazard ratio for, say, ost_q 2 vs. 1 (since '1' is the reference level), but instead the output from hazardratio statement shows ost_q 1 vs. 2. How to modify this code? Many thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;class ost_q (ref='1')/ PARAM = REF;
model&amp;nbsp; hosp*hosp_bin(0) = ost_q;
hazardratio ost_q /cl = wald ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2024 16:22:32 GMT</pubDate>
    <dc:creator>pink_poodle</dc:creator>
    <dc:date>2024-04-08T16:22:32Z</dc:date>
    <item>
      <title>Reverse categories in hazardratio statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reverse-categories-in-hazardratio-statement/m-p/923433#M83390</link>
      <description>&lt;P&gt;I have following statements in PROC PHREG (please see below), the meaning does not matter. The purpose is so the output shows hazard ratio for, say, ost_q 2 vs. 1 (since '1' is the reference level), but instead the output from hazardratio statement shows ost_q 1 vs. 2. How to modify this code? Many thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;class ost_q (ref='1')/ PARAM = REF;
model&amp;nbsp; hosp*hosp_bin(0) = ost_q;
hazardratio ost_q /cl = wald ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 16:22:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reverse-categories-in-hazardratio-statement/m-p/923433#M83390</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2024-04-08T16:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse categories in hazardratio statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reverse-categories-in-hazardratio-statement/m-p/923443#M83391</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/235176"&gt;@pink_poodle&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_phreg_syntax13.htm#statug.phreg.phrhazdiff" target="_blank" rel="noopener"&gt;DIFF=REF option&lt;/A&gt; to the HAZARDRATIO statement:&lt;/P&gt;
&lt;PRE&gt;hazardratio ost_q /cl = wald &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;diff=ref&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Apr 2024 16:57:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reverse-categories-in-hazardratio-statement/m-p/923443#M83391</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-04-08T16:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse categories in hazardratio statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reverse-categories-in-hazardratio-statement/m-p/923484#M83392</link>
      <description>Great, thank you! Happy Solar Eclipse!</description>
      <pubDate>Mon, 08 Apr 2024 19:50:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reverse-categories-in-hazardratio-statement/m-p/923484#M83392</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2024-04-08T19:50:30Z</dc:date>
    </item>
  </channel>
</rss>

