<?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 Cox Regression: Can you get hazard ratios for an interaction term? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Cox-Regression-Can-you-get-hazard-ratios-for-an-interaction-term/m-p/295249#M15732</link>
    <description>&lt;P&gt;When reporting hazard ratios for Cox regression analysis, is it common to report the hazard ratio for the interaction term itself?&lt;/P&gt;&lt;P&gt;For example, I have a model with 3 terms:&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;a*b&lt;/P&gt;&lt;P&gt;Using hazard ratio statements in SAS 9.4, I get a hazard ratio for 1) a at the mean of b, and 2) b at the mean of a. My understanding is that these hazard ratios are hazard ratios for the main effect variable (variable a or b) while holding the interacting variable constant. Is my understanding correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to get a hazard ratio for the interaction term?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2016 16:34:06 GMT</pubDate>
    <dc:creator>clcominsky</dc:creator>
    <dc:date>2016-08-30T16:34:06Z</dc:date>
    <item>
      <title>Cox Regression: Can you get hazard ratios for an interaction term?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Cox-Regression-Can-you-get-hazard-ratios-for-an-interaction-term/m-p/295249#M15732</link>
      <description>&lt;P&gt;When reporting hazard ratios for Cox regression analysis, is it common to report the hazard ratio for the interaction term itself?&lt;/P&gt;&lt;P&gt;For example, I have a model with 3 terms:&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;a*b&lt;/P&gt;&lt;P&gt;Using hazard ratio statements in SAS 9.4, I get a hazard ratio for 1) a at the mean of b, and 2) b at the mean of a. My understanding is that these hazard ratios are hazard ratios for the main effect variable (variable a or b) while holding the interacting variable constant. Is my understanding correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to get a hazard ratio for the interaction term?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 16:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Cox-Regression-Can-you-get-hazard-ratios-for-an-interaction-term/m-p/295249#M15732</guid>
      <dc:creator>clcominsky</dc:creator>
      <dc:date>2016-08-30T16:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cox Regression: Can you get hazard ratios for an interaction term?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Cox-Regression-Can-you-get-hazard-ratios-for-an-interaction-term/m-p/295331#M15739</link>
      <description>&lt;P&gt;Yes, you can include interaction-terms. You should use the option "/param=glm" in the class statement.&lt;/P&gt;
&lt;P&gt;With the hazard-ratio statement you can easily get the effect of one of the terms on each level of the other term. Like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data simulation;&lt;BR /&gt;*the the hazard ratio for A=1 vs A=2 is 1, 1.5 and 2 for respectively B=1, 2, 3;
  array a_effect{3} _temporary_ (1,1.5,2);
     do B=1 to 3;
  do A=1 to 2;
	 do i=1 to 100;
	   t=rand('exponential',1/exp((a=1)*log(a_effect[B])));
	   output;
	 end;
	 end;
  end;
run;
proc phreg data=simulation;
  class a b/param=glm;
  model t=a*b;
  hazardratio a/at(B=all);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 21:07:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Cox-Regression-Can-you-get-hazard-ratios-for-an-interaction-term/m-p/295331#M15739</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2016-08-30T21:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cox Regression: Can you get hazard ratios for an interaction term?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Cox-Regression-Can-you-get-hazard-ratios-for-an-interaction-term/m-p/296796#M15815</link>
      <description>&lt;P&gt;Thank you, Jacob. Your response was very helpful. Thank you for taking the time to provide it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Cox-Regression-Can-you-get-hazard-ratios-for-an-interaction-term/m-p/296796#M15815</guid>
      <dc:creator>clcominsky</dc:creator>
      <dc:date>2016-09-06T18:34:20Z</dc:date>
    </item>
  </channel>
</rss>

