<?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: Can you obtain odds ratios for variables involved in multiple interactions in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Can-you-obtain-odds-ratios-for-variables-involved-in-multiple/m-p/637347#M30495</link>
    <description>&lt;P&gt;In your code I assume that "surgery_type" in the ODDSRATIO statements is really specified as "surgery_name". Otherwise, errors would have been issued. The text you show from the table of Odds Ratio estimates is a proper description of one of the estimates. Note that an odds ratio in a model like this will involve parameters from the interacting variables, so the description is necessarily complex. That text tells you which two levels of surgery_name are compared and the settings of the interacting variables at which that comparison was made.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Apr 2020 20:28:17 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2020-04-03T20:28:17Z</dc:date>
    <item>
      <title>Can you obtain odds ratios for variables involved in multiple interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-you-obtain-odds-ratios-for-variables-involved-in-multiple/m-p/636955#M30487</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm new to modelling, and I have created the following model aimed to evaluate the factors that contribute to whether a patient receives a specific medication. Relevant covariates include the patient's age, sex, comorbidities (CS1, CS2, CS3), surgery (10 types), surgical urgency (elective vs other), and site the surgery was performed at.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've created the following model, which has 4 clinically relevant and highly statistically significant interactions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc logistic data=TXACharlson;&lt;BR /&gt;class sex(ref='M') admitCategory(ref='Elective') Surgery_name(ref="Open Hip arthroplasty") site(ref='Ottawa') / param=ref;&lt;BR /&gt;model TXAstatus (event='1') = age age*age sex CS1 CS2 CS3 admitCategory Surgery_name site &lt;BR /&gt;Surgery_name*admitCategory Surgery_name*age admitCategory*age surgery_name*site / clparm=both clodds=pl rl lackfit;&lt;/P&gt;
&lt;P&gt;oddsratio surgery_type / at (age=65);&lt;/P&gt;
&lt;P&gt;oddsratio surgery_type / at (age=70);&lt;/P&gt;
&lt;P&gt;oddsratio surgery_type / at (age=75);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to more easily interpret these interactions, I was hoping to output odds ratios for each interaction, if possible. When I try to use an 'oddsratio' statement (ie)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;oddsratio surgery_type / at (age=65);&lt;/P&gt;
&lt;P&gt;oddsratio surgery_type / at (age=70);&lt;/P&gt;
&lt;P&gt;oddsratio surgery_type / at (age=75);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of outputing the odds ratios for each surgery type at these ages, it outputs a very complex matrix involving some of the other interaction terms (ie,&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Logistic: Odds Ratios CL=Wald" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row" width="704px" height="38px"&gt;Surgery_Name Open spinal cord decompression vs Spinal fusion with vertebrectomy at Age=68 admitCategory=Elective site=Winnipeg&lt;/TH&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Any other suggestions for how to more meaningfully interpret covariates involved in multiple interactions?&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Thanks in advance,&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Brett&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Apr 2020 17:17:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-you-obtain-odds-ratios-for-variables-involved-in-multiple/m-p/636955#M30487</guid>
      <dc:creator>bretthouston</dc:creator>
      <dc:date>2020-04-02T17:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can you obtain odds ratios for variables involved in multiple interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-you-obtain-odds-ratios-for-variables-involved-in-multiple/m-p/637334#M30494</link>
      <description>&lt;P&gt;Hi Brett,&lt;/P&gt;
&lt;P&gt;I am going to assume that surgery_type in the ODDSRATIO statements is an exact copy of the CLASS variable Surgery_name.&amp;nbsp; If it is something else, then my surmision about what is happening is probably wrong.&amp;nbsp; There are three terms that are included as interactions with Surgery_name: admitCategory, age and site. The syntax you have would give ORs for Surgery_type at each admitCategory at each site, with age fixed at whatever value is specified. &lt;SPAN style="font-family: inherit;"&gt;This is about as you might expect with this many levels, etc..&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="line-height: 1.71429;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use ODS to output a dataset of the ORs, you should be able to see what each of these are, in something that might be more easily read..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I think you are asking if there is a more compact and understandable way to see the ORs, and I don't know of any offhand, but I would guess that there are some macros out there that use the output dataset to summarize in a more easily undertandable format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 18:51:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-you-obtain-odds-ratios-for-variables-involved-in-multiple/m-p/637334#M30494</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-03T18:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can you obtain odds ratios for variables involved in multiple interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-you-obtain-odds-ratios-for-variables-involved-in-multiple/m-p/637347#M30495</link>
      <description>&lt;P&gt;In your code I assume that "surgery_type" in the ODDSRATIO statements is really specified as "surgery_name". Otherwise, errors would have been issued. The text you show from the table of Odds Ratio estimates is a proper description of one of the estimates. Note that an odds ratio in a model like this will involve parameters from the interacting variables, so the description is necessarily complex. That text tells you which two levels of surgery_name are compared and the settings of the interacting variables at which that comparison was made.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 20:28:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-you-obtain-odds-ratios-for-variables-involved-in-multiple/m-p/637347#M30495</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-04-03T20:28:17Z</dc:date>
    </item>
  </channel>
</rss>

