<?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: How do I interpret odds ratios for a three-way interaction in logistic regression? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/909919#M45171</link>
    <description>Thank you for this. I am wondering how to compare the odds ratios interaction terms. For example, in the output attached by the user who wrote in, the first odds ratio is for Black where Young=0, and Male=0, with the odds being 1.336. So we can say that Black non-young, non-male persons are 1.336 times more likely to [whatever the dependent variable is]. But my question is: who are we comparing the Black non-young, non-male to? Is this compared to White non-young, non-male? Or, compared to Black, young, male?</description>
    <pubDate>Fri, 29 Dec 2023 23:33:14 GMT</pubDate>
    <dc:creator>K331</dc:creator>
    <dc:date>2023-12-29T23:33:14Z</dc:date>
    <item>
      <title>How do I interpret odds ratios for a three-way interaction in logistic regression?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/813128#M40103</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am conducting a logistic regression with an interaction between three dummy variables. Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc logistic data=Multivariate descending;
	class Black  (ref='0') / param=ref;
	class Young  (ref='0') / param=ref;  
	class Male  (ref='0') / param=ref;  

	model &amp;amp;OUTCOME = 	&amp;amp;KEYIVS
						Black*Young*Male
						/ clodds=wald ORPVALUE;
	oddsratio Black / diff=ref;
	oddsratio Young / diff=ref;
	oddsratio Male / diff=ref;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've attached the pertinent output as a PDF because I'm not sure how else to display a table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My confusion is that there are three groups of odds ratios that are the same value across three separate combinations of the predictor values (1.336, 0.802, and 1.167). When I run two-way interactions there are no repeated values like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I misunderstanding the displayed data, or have I written the three-way interaction code incorrectly? Thanks for your advice!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 05:07:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/813128#M40103</guid>
      <dc:creator>samp945</dc:creator>
      <dc:date>2022-05-13T05:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I interpret odds ratios for a three-way interaction in logistic regression?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/813156#M40104</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/415445"&gt;@samp945&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The results suggest that macro variable KEYIVS contains the individual variable names &lt;FONT face="courier new,courier"&gt;Black&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;Young&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;Male&lt;/FONT&gt;&amp;nbsp;(and possibly more), but not their two-way interactions. I think you should add&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Black*Young&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;Black*Male&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;Young*Male&lt;/FONT&gt; to the MODEL statement in order to obtain reasonably interpretable results. Without the two-way interactions you have too few degrees of freedom (see column DF in table "Analysis of Maximum Likelihood Estimates") to estimate, e.g., the odds ratios "&lt;FONT face="courier new,courier"&gt;Black 1 vs 0&lt;/FONT&gt;" at the four possible combinations of &lt;FONT face="courier new,courier"&gt;Young&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;Male&lt;/FONT&gt;&amp;nbsp;individually.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:57:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/813156#M40104</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-05-13T09:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I interpret odds ratios for a three-way interaction in logistic regression?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/813197#M40105</link>
      <description>&lt;P&gt;You are, of course, precisely correct! Thanks for pointing that out to me. I know better, but I couldn't see my mistake. Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 13:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/813197#M40105</guid>
      <dc:creator>samp945</dc:creator>
      <dc:date>2022-05-13T13:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I interpret odds ratios for a three-way interaction in logistic regression?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/909919#M45171</link>
      <description>Thank you for this. I am wondering how to compare the odds ratios interaction terms. For example, in the output attached by the user who wrote in, the first odds ratio is for Black where Young=0, and Male=0, with the odds being 1.336. So we can say that Black non-young, non-male persons are 1.336 times more likely to [whatever the dependent variable is]. But my question is: who are we comparing the Black non-young, non-male to? Is this compared to White non-young, non-male? Or, compared to Black, young, male?</description>
      <pubDate>Fri, 29 Dec 2023 23:33:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/909919#M45171</guid>
      <dc:creator>K331</dc:creator>
      <dc:date>2023-12-29T23:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I interpret odds ratios for a three-way interaction in logistic regression?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/909939#M45175</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/460994"&gt;@K331&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the correctly specified model (i.e., &lt;EM&gt;including&lt;/EM&gt; the two-way interaction terms) the odds ratio estimate "Black 1 vs 0 at Young=0 Male=0" estimates the odds ratio of&amp;nbsp;Black=1 vs.&amp;nbsp;Black=0 in the subpopulation "Young=0 &amp;amp; Male=0". So it compares b&lt;SPAN&gt;lack, non-young, non-males to non-black, non-young, non-males.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; In general, the wording "... times more likely than ..." describes a&amp;nbsp;&lt;EM&gt;relative risk&lt;/EM&gt;, not an odds ratio. Estimates of the relative risks can be computed from the parameter estimates in the "Analysis of Maximum Likelihood Estimates" table of the PROC LOGISTIC output. Example: Let &lt;FONT face="courier new,courier"&gt;i&lt;/FONT&gt;&amp;nbsp;denote the intercept and &lt;FONT face="courier new,courier"&gt;b&lt;/FONT&gt;&amp;nbsp;the parameter estimate for "Black" in that table. Then the relative risk of Black=1 vs.&amp;nbsp;Black=0 in the subpopulation "Young=0 &amp;amp; Male=0" can be estimated as &lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;logistic(i+b)/logistic(i) = exp(b)*(1+exp(i))/(1+exp(i+b))&lt;/PRE&gt;</description>
      <pubDate>Sat, 30 Dec 2023 13:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/909939#M45175</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-12-30T13:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I interpret odds ratios for a three-way interaction in logistic regression?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/909940#M45176</link>
      <description>Thank you! This is very helpful. If I were presenting results to a&lt;BR /&gt;non-technical audience in which I couldn't use the relative risk language,&lt;BR /&gt;would I be able to use the language "have an odds of..." instead?&lt;BR /&gt;</description>
      <pubDate>Sat, 30 Dec 2023 14:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/909940#M45176</guid>
      <dc:creator>K331</dc:creator>
      <dc:date>2023-12-30T14:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I interpret odds ratios for a three-way interaction in logistic regression?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/909941#M45177</link>
      <description>&lt;P&gt;By setting the predictor variables (like Black, Young, Male) to values of your choice and using the parameter estimates from PROC LOGISTIC output you can compute the log odds (i.e., log(p/(1-p)) for&amp;nbsp;an individual with those characteristics to experience the event of interest according to the binary logistic regression model. The odds (i.e., p/(1-p)) are the exponentiated log odds. So, yes, you can say that, according to the model, one subgroup (e.g., black, young, male persons) has an odds of, say, 1.2, whereas another subgroup (e.g., non-black, young, male persons) has an odds of, say, 2.3, "... which is almost twice ..." (thus mentioning the odds ratio without explicitly using that term).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note, however, that the &lt;EM&gt;odds&lt;/EM&gt; computed from the model don't necessarily approximate the odds in the population the model is applied to: The analysis dataset could have been artificially constructed rather than being a representative random sample from the population. For example, oversampling could have been used in order to increase the proportion of subjects having experienced the event of interest. But the odds &lt;EM&gt;ratios&lt;/EM&gt;&amp;nbsp;would still be valid in this situation. In the example above, the realistic odds might be, e.g., 0.024 and 0.046, respectively.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Dec 2023 15:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/909941#M45177</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-12-30T15:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I interpret odds ratios for a three-way interaction in logistic regression?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/909942#M45178</link>
      <description>Thank you so much, yes that makes total sense.&lt;BR /&gt;</description>
      <pubDate>Sat, 30 Dec 2023 16:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-interpret-odds-ratios-for-a-three-way-interaction-in/m-p/909942#M45178</guid>
      <dc:creator>K331</dc:creator>
      <dc:date>2023-12-30T16:23:16Z</dc:date>
    </item>
  </channel>
</rss>

