<?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 hazard ratio from regression coefficients in an interaction term in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/hazard-ratio-from-regression-coefficients-in-an-interaction-term/m-p/469798#M24437</link>
    <description>&lt;P&gt;I am using proc phreg to estimate hazard ratios, my model is as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;time*event(0) = week|avg education race;&lt;/P&gt;&lt;P&gt;random zipcode;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get the hazard ratio for 'week'. I was originally doing this by hand by summing the estimate from week and the interaction term, but assume there is a way to do this using estimate/contrast?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 04:16:47 GMT</pubDate>
    <dc:creator>psh23</dc:creator>
    <dc:date>2018-06-13T04:16:47Z</dc:date>
    <item>
      <title>hazard ratio from regression coefficients in an interaction term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/hazard-ratio-from-regression-coefficients-in-an-interaction-term/m-p/469798#M24437</link>
      <description>&lt;P&gt;I am using proc phreg to estimate hazard ratios, my model is as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;time*event(0) = week|avg education race;&lt;/P&gt;&lt;P&gt;random zipcode;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get the hazard ratio for 'week'. I was originally doing this by hand by summing the estimate from week and the interaction term, but assume there is a way to do this using estimate/contrast?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 04:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/hazard-ratio-from-regression-coefficients-in-an-interaction-term/m-p/469798#M24437</guid>
      <dc:creator>psh23</dc:creator>
      <dc:date>2018-06-13T04:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: hazard ratio from regression coefficients in an interaction term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/hazard-ratio-from-regression-coefficients-in-an-interaction-term/m-p/469802#M24438</link>
      <description>&lt;P&gt;Try a HAZARDRATIO statement instead. Much simpler syntax.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 00:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/hazard-ratio-from-regression-coefficients-in-an-interaction-term/m-p/469802#M24438</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-13T00:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: hazard ratio from regression coefficients in an interaction term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/hazard-ratio-from-regression-coefficients-in-an-interaction-term/m-p/469808#M24439</link>
      <description>&lt;P&gt;youdont have week as a main factor in the model, just in the interaction? you'll need to use 'at' in the hazardratio statement &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; suggested, see here: &lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_phreg_sect014.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_phreg_sect014.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 00:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/hazard-ratio-from-regression-coefficients-in-an-interaction-term/m-p/469808#M24439</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-06-13T00:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: hazard ratio from regression coefficients in an interaction term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/hazard-ratio-from-regression-coefficients-in-an-interaction-term/m-p/469827#M24442</link>
      <description>&lt;P&gt;When I use the hazardratio statement I cannot recreate what I get when I am summing the coefficients by hand. This is why I wasn't using it initially - is there a specification that needs to be made?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Estimate&lt;/TD&gt;&lt;TD&gt;Exp summed estimate&lt;/TD&gt;&lt;TD&gt;Hazard Ratio from SAS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;average&lt;/TD&gt;&lt;TD&gt;0.000196&lt;/TD&gt;&lt;TD&gt;0.999763628&lt;/TD&gt;&lt;TD&gt;0.995&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;week&lt;/TD&gt;&lt;TD&gt;-0.0002121&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;week*average&lt;/TD&gt;&lt;TD&gt;-0.0000243&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 04:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/hazard-ratio-from-regression-coefficients-in-an-interaction-term/m-p/469827#M24442</guid>
      <dc:creator>psh23</dc:creator>
      <dc:date>2018-06-13T04:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: hazard ratio from regression coefficients in an interaction term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/hazard-ratio-from-regression-coefficients-in-an-interaction-term/m-p/469829#M24443</link>
      <description>&lt;P&gt;are you doing it by hand or in a data step? it could be rounding error, calculate the hr in a data step as exp(estimate). Also did you use 'at' in the hazard ratio statement? if you just sum them up then it's at average=1?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 04:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/hazard-ratio-from-regression-coefficients-in-an-interaction-term/m-p/469829#M24443</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-06-13T04:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: hazard ratio from regression coefficients in an interaction term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/hazard-ratio-from-regression-coefficients-in-an-interaction-term/m-p/469943#M24449</link>
      <description>&lt;P&gt;99% of the time the error is with the hand calculation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do it with a data step so you can't get any typo's or rounding errors and post your code if it still doesn't match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 14:42:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/hazard-ratio-from-regression-coefficients-in-an-interaction-term/m-p/469943#M24449</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-13T14:42:15Z</dc:date>
    </item>
  </channel>
</rss>

