<?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: Proc Phreg Hazardratio statement in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/428397#M22505</link>
    <description>&lt;P&gt;Norte: the above answer was geared towards a categorical variable.&amp;nbsp; I haven't tried the / E option in conjunction with the UNITS= option on the HAZARDRATIO statement with a continuous covariate.&amp;nbsp; If it doesn't work seamlessly you can always do the HAZARDRATIO/CONTRAST statement construct for UNITS=1 and then just manually exponentiate the resulting 1-unit hazard ratio (say HR_1)&amp;nbsp;for UNITS=k as HR_k = (HR_1)**k.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2018 15:01:44 GMT</pubDate>
    <dc:creator>OsoGris</dc:creator>
    <dc:date>2018-01-17T15:01:44Z</dc:date>
    <item>
      <title>Proc Phreg Hazardratio statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/427908#M22494</link>
      <description>&lt;P&gt;Howdy yall,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know alternatives to the hazardratio statement that allow the statistician to specify different units for continuous variables?&amp;nbsp; This statement does not offer p-values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 03:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/427908#M22494</guid>
      <dc:creator>Wafflecakes</dc:creator>
      <dc:date>2018-01-16T03:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Phreg Hazardratio statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/428393#M22503</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;You can use the&amp;nbsp; E option of the HAZARDRATIO statement to display the coefficient vector&amp;nbsp;of the linear combination that gives rise to the&amp;nbsp;hazard ratio.&amp;nbsp; Note that the E goes after a forward slash.&amp;nbsp; Suppose you desire a hazard ratio for a covariate named 'treatement'; for example, &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;HAZARDRATIO &lt;FONT color="#ff0000"&gt;treatment&lt;/FONT&gt; / DIFF=REF E;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Then you can use those coefficients in a CONTRAST statement with the ESTMATE=EXP option which should replicate the hazard ratio value and also give a p-value.&amp;nbsp; The ESTIMATE=EXP also goes after a forward slash.&amp;nbsp; For example,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;CONTRAST 'label' &lt;FONT color="#ff0000"&gt;treatment&lt;/FONT&gt; &lt;EM&gt;. . . list of coefficients&amp;nbsp;. .&lt;/EM&gt; .&amp;nbsp; / ESTIMATE=EXP;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="cs5BEC2C28" style="text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Calibri; font-size: 12pt; font-style: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;For a good example with categorical variables see&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="cs92015F65" style="text-align: left; color: rgb(0, 0, 255); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt; font-style: normal; text-decoration: underline; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px;"&gt;&lt;A class="cs92015F65" style="color: rgb(0, 0, 255); font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt; font-style: normal; font-weight: normal; text-decoration: underline; background-color: transparent;" href="https://secure-web.cisco.com/1wuXg15lSvlWs3U2VIpIfdUVQ6wrV02dxWUGxMPrMm2Mo7qMOg0dkBODUGVNfMpdeF66ExMclJD8CmoKgSqgDpb3y0HAd3AQx6C0ZsoovAMWogIarnJGnPYxVZsk_LD3VfjTw6U4b4TXWK1f8bdFl1-eh3N75gcfuCHk5UbOLjuyl8nBW4Rq-pygGtrMTtzUettB0U4x2j11X1FblSOM1ULJ2l0axuYaWGp7zUXJxSBNuSW5cc3a8UKcruCE1J-Kc/https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__go.documentation.sas.com_-3FdocsetId-3Dstatug-26docsetVersion-3D14.2-26docsetTarget-3Dstatug-5Fphreg-5Fexamples03.htm-26locale-3Den%26d%3DDwMGAg%26c%3Dt0wRGL5ICVzH157W8C8Wew%26r%3DsvdvxTZ3Us28czJr_H_ehY0RQg1iVLHDKilfxOSlQoY%26m%3DyLHnPLh_60MKtZASpt3us3Rf52-xRqX4q43SN3llf3E%26s%3DPG6inX6-YQvYejDa4nhJJcAjqzswRSpSqIf41mNVf0c%26e%3D" target="_blank"&gt;&lt;SPAN class="cs46539165" style="color: rgb(0, 0, 255); font-family: Calibri; font-size: 12pt; font-style: normal; text-decoration: underline; background-color: transparent;"&gt;Example 86.3 Modeling with Categorical Predictors&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="csB3E565D2" style="text-align: left; color: rgb(0, 0, 255); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Calibri; font-size: 12pt; font-style: normal; text-decoration: underline; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="cs5BEC2C28" style="text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Calibri; font-size: 12pt; font-style: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;which&amp;nbsp;is&amp;nbsp;informative. &amp;nbsp;In particular, the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="csB0EFEC6E" style="text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Calibri; font-size: 12pt; font-style: normal; text-decoration: underline; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px;"&gt;3rd PHREG step&lt;/SPAN&gt;&lt;SPAN class="cs5BEC2C28" style="text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Calibri; font-size: 12pt; font-style: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;nbsp;there has HAZARDRATIO statements 'H1', 'H2' and 'H3' which correspond with CONTRAST statements 'C1', 'C2' and 'C3', respectively (and which naturally give the same results except that the CONTRAST statement also gives a p-value)&lt;/SPAN&gt;&lt;SPAN class="cs26811388" style="text-align: left; color: rgb(86, 86, 86); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Calibri; font-size: 12pt; font-style: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;. &amp;nbsp;&amp;nbsp;&amp;nbsp;T&lt;/SPAN&gt;&lt;SPAN class="cs5BEC2C28" style="text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Calibri; font-size: 12pt; font-style: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;he entire example is informative but the material including and above Output 86.3.6 &amp;amp; Output 86.3.7 illustrates these corresponding HAZARDRATIO and CONTRAST statement results.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 14:53:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/428393#M22503</guid>
      <dc:creator>OsoGris</dc:creator>
      <dc:date>2018-01-17T14:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Phreg Hazardratio statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/428396#M22504</link>
      <description>How would I figure out the coefficients for two-way interactions between categorical variables? I dont know how to come up with the design matrix.</description>
      <pubDate>Wed, 17 Jan 2018 14:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/428396#M22504</guid>
      <dc:creator>Wafflecakes</dc:creator>
      <dc:date>2018-01-17T14:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Phreg Hazardratio statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/428397#M22505</link>
      <description>&lt;P&gt;Norte: the above answer was geared towards a categorical variable.&amp;nbsp; I haven't tried the / E option in conjunction with the UNITS= option on the HAZARDRATIO statement with a continuous covariate.&amp;nbsp; If it doesn't work seamlessly you can always do the HAZARDRATIO/CONTRAST statement construct for UNITS=1 and then just manually exponentiate the resulting 1-unit hazard ratio (say HR_1)&amp;nbsp;for UNITS=k as HR_k = (HR_1)**k.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 15:01:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/428397#M22505</guid>
      <dc:creator>OsoGris</dc:creator>
      <dc:date>2018-01-17T15:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Phreg Hazardratio statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/428404#M22508</link>
      <description>&lt;P&gt;When you have an interaction term you cannot interpret the main effects in isolation.&amp;nbsp; You must involve the levels/value of the interacting variable(s).&amp;nbsp; So, regarding HAZARDRATIOS for interaction models you can still use the E option and the CONTRAST statement construct.&amp;nbsp; However, you will likely also need the AT= option to compute the hazard ratio &amp;nbsp;for a one variable at a particular level of the interacting covariate.&amp;nbsp;&amp;nbsp; For instance, if continuous variables x1 and x2 appear in an interaction term then you can do something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HAZARDRATIO x1 / AT(x2=3) E;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can take the coefficients to a CONTRAST statement with ESTIMATE=EXP as explained above.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 15:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/428404#M22508</guid>
      <dc:creator>OsoGris</dc:creator>
      <dc:date>2018-01-17T15:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Phreg Hazardratio statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/428407#M22509</link>
      <description>&lt;P&gt;Sorry, again my reply was geared towards continuous variables which was your initial question.&amp;nbsp; Regarding interactions of categorical variables say coviartes c1 and c2 you can do something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HAZARDRATIO c1 /&amp;nbsp; AT(c2=ALL) E;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, again, take the coefficients to a CONTRAST statement.&amp;nbsp; See the Syntax =&amp;gt; HAZARDRATIO Statement section of the PHREG documentation for more&amp;nbsp;details on the&amp;nbsp;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_phreg_syntax13.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en#statug.phreg.phrhazat" target="_blank"&gt;HAZARDRATIO Statement&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 15:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/428407#M22509</guid>
      <dc:creator>OsoGris</dc:creator>
      <dc:date>2018-01-17T15:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Phreg Hazardratio statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/428554#M22514</link>
      <description>The E option does not work I don't think when used in conjunction with the 'UNITS' option. how does this:&lt;BR /&gt;&lt;BR /&gt;"If it doesn't work seamlessly you can always do the HAZARDRATIO/CONTRAST statement construct for UNITS=1 and then just manually exponentiate the resulting 1-unit hazard ratio (say HR_1) for UNITS=k as HR_k = (HR_1)**k."&lt;BR /&gt;&lt;BR /&gt;Get you the p-value?</description>
      <pubDate>Wed, 17 Jan 2018 19:01:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/428554#M22514</guid>
      <dc:creator>Wafflecakes</dc:creator>
      <dc:date>2018-01-17T19:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Phreg Hazardratio statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/428740#M22519</link>
      <description>&lt;P&gt;I think the best thing to do at this point is to open up a ticket (Tracking Number) with SAS Technical Support.&amp;nbsp; You can do so by emailing to support@sas.com and make sure you reference PHREG in&amp;nbsp;the subject.&amp;nbsp;&amp;nbsp; However, the most efficient&amp;nbsp;way to&amp;nbsp;open a ticket is to use our online &lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;Submit A Problem&lt;/A&gt;&amp;nbsp;form and select SAS/STAT from the &amp;nbsp;"Product"&amp;nbsp;list (you'll have to scroll down in this list pretty far).&amp;nbsp; &amp;nbsp;In so doing it is&amp;nbsp;a good idea to provide your site number, SAS release and OS.&amp;nbsp;&amp;nbsp; Please run the following SAS statement and include&amp;nbsp;the results of which appear in the SAS log: 　　　　　　&lt;/P&gt;
&lt;P align="LEFT"&gt;　&lt;/P&gt;
&lt;P align="LEFT"&gt;　 　　　　　　　%put Site: &amp;amp;syssite 　　　Release: 　&amp;amp;sysver 　(&amp;amp;sysvlong) 　　　System: &amp;amp;sysscp (&amp;amp;sysscpl);&lt;/P&gt;
&lt;P align="LEFT"&gt;　&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&amp;nbsp;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 10:56:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/428740#M22519</guid>
      <dc:creator>OsoGris</dc:creator>
      <dc:date>2018-01-18T10:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Phreg Hazardratio statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/429274#M22553</link>
      <description>&lt;P&gt;I do get the coefficients in these tables at the bottom but it is equal to the units that I set for the continuous variable and the other variables are listed as well with coefficients that equal 0.&amp;nbsp; Is that correct?&amp;nbsp; I don't think so?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 20:41:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Phreg-Hazardratio-statement/m-p/429274#M22553</guid>
      <dc:creator>Wafflecakes</dc:creator>
      <dc:date>2018-01-19T20:41:12Z</dc:date>
    </item>
  </channel>
</rss>

