<?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 Interpreting log binomial output for interaction term in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Interpreting-log-binomial-output-for-interaction-term/m-p/805035#M33448</link>
    <description>&lt;P&gt;Hello, I am using proc genmod to run log binomial analysis that involve an interaction term between 7 age groups and two gender groups (coded 1 for Male and 2 for Female). Reference group for gender is Male and for age '12-17'. This is my code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;proc genmod data =_data.sample descending;
 class gender age_grps(ref="12-17") site/ param=ref;
 model  f_myo = gender age_grps gender*age_grps/ dist = binomial link = log;
 repeated subject=site;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am struggling to understand the output and specifically, which group is a reference for gender-sex interaction. Is it Male*12-17 or Female*12-17? This is my output:&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 603px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69961i3EE47BA93E2EC43E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 12:41:00 GMT</pubDate>
    <dc:creator>math2206</dc:creator>
    <dc:date>2022-03-30T12:41:00Z</dc:date>
    <item>
      <title>Interpreting log binomial output for interaction term</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpreting-log-binomial-output-for-interaction-term/m-p/805035#M33448</link>
      <description>&lt;P&gt;Hello, I am using proc genmod to run log binomial analysis that involve an interaction term between 7 age groups and two gender groups (coded 1 for Male and 2 for Female). Reference group for gender is Male and for age '12-17'. This is my code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;proc genmod data =_data.sample descending;
 class gender age_grps(ref="12-17") site/ param=ref;
 model  f_myo = gender age_grps gender*age_grps/ dist = binomial link = log;
 repeated subject=site;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am struggling to understand the output and specifically, which group is a reference for gender-sex interaction. Is it Male*12-17 or Female*12-17? This is my output:&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 603px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69961i3EE47BA93E2EC43E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 12:41:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpreting-log-binomial-output-for-interaction-term/m-p/805035#M33448</guid>
      <dc:creator>math2206</dc:creator>
      <dc:date>2022-03-30T12:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting log binomial output for interaction term</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpreting-log-binomial-output-for-interaction-term/m-p/805153#M33456</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your reference level for gender is '2' (Female).&lt;/P&gt;
&lt;P&gt;Your reference level for&amp;nbsp;age_grps is "12-17" .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want a single reference category for the interaction analysis, I would make the interaction effect upfront, like :&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;gender_times_age_grps = catx(" + ", gender , age_grps );&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then put that self-made interaction effect in the CLASS statement&amp;nbsp;and specify the reference&amp;nbsp;level you want (ref= ).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the model statement, use the three variables specified in the CLASS statement and no other effects.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 21:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpreting-log-binomial-output-for-interaction-term/m-p/805153#M33456</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-03-30T21:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting log binomial output for interaction term</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpreting-log-binomial-output-for-interaction-term/m-p/805162#M33458</link>
      <description>Thank you, Koen.&lt;BR /&gt;That was very helpful. You are right, my reference was Female group, not Male. I made an error in my post. I never thought about trying a new variable for sex*age. It was interesting to see that I had different result for this variable to the one where I use param=glm and compare all sex*age interaction groups to Female*12-17.&lt;BR /&gt;I ended up using proc logistic and oddsratio for age_grps AT (gender='1') to figure out if that result matches my proc genmod output for gender*age_grps. It provided ORs for age_grps xx vs 12-17 at gender=1 and they matched my estimates from proc genmod. That means to me that my estimations for interaction in proc genmod are for Males in each age group vs Males in 12-17.</description>
      <pubDate>Wed, 30 Mar 2022 22:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpreting-log-binomial-output-for-interaction-term/m-p/805162#M33458</guid>
      <dc:creator>math2206</dc:creator>
      <dc:date>2022-03-30T22:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting log binomial output for interaction term</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpreting-log-binomial-output-for-interaction-term/m-p/805313#M33472</link>
      <description>&lt;P&gt;The reference category for gender*age_grps uses gender=2 (female) and age_grps='12-17'.&amp;nbsp; The estimates that appear for gender*age_grps levels are "incremental" effects compared to that reference group.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 14:47:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpreting-log-binomial-output-for-interaction-term/m-p/805313#M33472</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-03-31T14:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting log binomial output for interaction term</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpreting-log-binomial-output-for-interaction-term/m-p/805690#M33500</link>
      <description>Thank you everyone for you replies, I think I worked it out why reference group for gender*age_grps is gender=2 (female) and age_grps='12-17'.</description>
      <pubDate>Sun, 03 Apr 2022 09:33:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpreting-log-binomial-output-for-interaction-term/m-p/805690#M33500</guid>
      <dc:creator>math2206</dc:creator>
      <dc:date>2022-04-03T09:33:09Z</dc:date>
    </item>
  </channel>
</rss>

