<?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: Include Reference in PHREG for comparison in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Include-Reference-in-PHREG-for-comparison/m-p/704661#M34094</link>
    <description>&lt;P&gt;Oh Nice. Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 09:04:43 GMT</pubDate>
    <dc:creator>ifti_ch2002</dc:creator>
    <dc:date>2020-12-09T09:04:43Z</dc:date>
    <item>
      <title>Include Reference in PHREG for comparison</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Include-Reference-in-PHREG-for-comparison/m-p/704377#M34057</link>
      <description>&lt;P&gt;I need to include reference category in Phreg in the table of 'Parameterestimates' for comparison between two levels, for example if i have sex as class variable, and female as ref, then in the table of&amp;nbsp;'Parameterestimates' only shows the hazard ratio of Male. What i need is to include the female as reference for sex and hazard ratio for that will be 1.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 09:47:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Include-Reference-in-PHREG-for-comparison/m-p/704377#M34057</guid>
      <dc:creator>ifti_ch2002</dc:creator>
      <dc:date>2020-12-08T09:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Include Reference in PHREG for comparison</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Include-Reference-in-PHREG-for-comparison/m-p/704392#M34059</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/267482"&gt;@ifti_ch2002&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you should specify the &lt;FONT face="courier new,courier"&gt;param=glm&lt;/FONT&gt; option of the CLASS statement. This will include the reference level in the &lt;FONT face="courier new,courier"&gt;Parameterestimates&lt;/FONT&gt; ODS output dataset with &lt;FONT face="courier new,courier"&gt;HazardRatio=.&lt;/FONT&gt;, which you can set to 1 in a subsequent data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example (using the sample data from&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_phreg_examples03.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;Example 89.3 Modeling with Categorical Predictors&lt;/A&gt;)&lt;FONT face="helvetica"&gt;:&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output parameterestimates=est;
proc phreg data=VALung;
class Prior(ref='no') Cell(ref='large') Therapy(ref='standard') / param=glm;
model Time*Status(0) = Kps Duration Age Cell Prior Therapy;
run;

data want;
set est;
if df=0 then hazardratio=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Dec 2020 12:57:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Include-Reference-in-PHREG-for-comparison/m-p/704392#M34059</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-12-08T12:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Include Reference in PHREG for comparison</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Include-Reference-in-PHREG-for-comparison/m-p/704661#M34094</link>
      <description>&lt;P&gt;Oh Nice. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 09:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Include-Reference-in-PHREG-for-comparison/m-p/704661#M34094</guid>
      <dc:creator>ifti_ch2002</dc:creator>
      <dc:date>2020-12-09T09:04:43Z</dc:date>
    </item>
  </channel>
</rss>

