<?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: Probing interactions in robust poisson model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723538#M35074</link>
    <description>&lt;P&gt;I have a question: Why do you call this a "robust" Poisson regression?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Mar 2021 17:52:51 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2021-03-04T17:52:51Z</dc:date>
    <item>
      <title>Probing interactions in robust poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723507#M35070</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking at associations between several explanatory variables and a binary outcome (called "vs"). In order to obtain prevalence ratio estimates, I am using robust poisson regression (PROC GENMOD). I want to test interactions between some explanatory variables but I cannot figure out how to do so beyond examining the significance of interaction terms included in the model (e.g. X1*X2). If X1*X2 is significant, I do not know how to go on to probe the interaction, e.g. examine the relationship between X1 and Y at different levels of X2 (i.e. the direction and strength of the relationship between X1 and Y at different levels of X2). I think I know how to do this in other types of models, such as logistic, where one uses the ODDSRATIO command to produce ORs reflecting&amp;nbsp;the relationship between X1 and Y at different levels of X2, but can't figure it out in proc genmod. If someone has an idea about code for this it would be greatly appreciated! Below is my code for the main effects model. I want to probe the interaction term "homeless*pills" in a subsequent model with interaction effects.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc genmod data=siya2 descending;&lt;BR /&gt;class pid support (ref="1") bl_partner (ref="3") /param=ref;&lt;BR /&gt;model vs = pills /*continuous*/&lt;BR /&gt;educ /*categorical*/&lt;BR /&gt;bl_partner&amp;nbsp;/*categorical*/&lt;BR /&gt;homeless /* categorical (1/0) */&lt;BR /&gt;support&amp;nbsp;/*categorical*/&lt;BR /&gt;&amp;nbsp;/Dist=poisson Link=log;&lt;BR /&gt;Repeated subject = pid / type=Ind;&lt;BR /&gt;title 'VS on Pills - robust POISSON';&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 16:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723507#M35070</guid>
      <dc:creator>amcr729</dc:creator>
      <dc:date>2021-03-04T16:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Probing interactions in robust poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723529#M35072</link>
      <description>&lt;P&gt;You can use the SLICE statement in GENMOD (and most other modeling procedures) to do comparisons of levels of one variable in an interaction at specific levels of the interacting variable. See &lt;A href="http://support.sas.com/kb/24455" target="_self"&gt;this note&lt;/A&gt; for an example.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 17:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723529#M35072</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-03-04T17:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Probing interactions in robust poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723538#M35074</link>
      <description>&lt;P&gt;I have a question: Why do you call this a "robust" Poisson regression?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 17:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723538#M35074</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-03-04T17:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Probing interactions in robust poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723587#M35075</link>
      <description>&lt;DIV class="page"&gt;&lt;DIV class="section"&gt;&lt;DIV class="layoutArea"&gt;&lt;DIV class="column"&gt;&lt;P&gt;&lt;SPAN&gt;Because I am using a robust error variance, which avoids an overly conservative CI, by &lt;/SPAN&gt;&lt;SPAN&gt;using the repeated statement and the subject identifier. See &lt;A href="https://support.sas.com/resources/papers/proceedings11/345-2011.pdf" target="_self"&gt;here.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Mar 2021 19:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723587#M35075</guid>
      <dc:creator>amcr729</dc:creator>
      <dc:date>2021-03-04T19:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Probing interactions in robust poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723592#M35076</link>
      <description>&lt;P&gt;Interesting. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I noticed you did not list EDUC and&amp;nbsp;HOMELESS on the CLASS statement. Was that intentional?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 19:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723592#M35076</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-03-04T19:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Probing interactions in robust poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723632#M35080</link>
      <description>&lt;P&gt;Many thanks. However, SLICE and the other commands provided at that link appear to only work for categorical explanatory variables, although I may be missing something. When I run the below code, I get an error message for the SLICE statement saying "Only CLASS variables allowed in this effect"-- presumably referring to the "pills" variable, although "pills" is not categorical. Thanks for any further guidance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;genmod&lt;/STRONG&gt;&lt;/SPAN&gt; data&lt;SPAN class="s2"&gt;=siya2 &lt;/SPAN&gt;descending&lt;SPAN class="s2"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s3"&gt;class&lt;/SPAN&gt; pid support (&lt;SPAN class="s3"&gt;ref&lt;/SPAN&gt;=&lt;SPAN class="s4"&gt;"1"&lt;/SPAN&gt;) bl_partner (&lt;SPAN class="s3"&gt;ref&lt;/SPAN&gt;=&lt;SPAN class="s4"&gt;"3"&lt;/SPAN&gt;) phq9_cat (&lt;SPAN class="s3"&gt;ref&lt;/SPAN&gt;=&lt;SPAN class="s4"&gt;"0"&lt;/SPAN&gt;)&lt;/P&gt;&lt;P class="p2"&gt;bl_alcohol_freq (&lt;SPAN class="s3"&gt;ref&lt;/SPAN&gt;=&lt;SPAN class="s4"&gt;"0"&lt;/SPAN&gt;) bl_whoqol12 (&lt;SPAN class="s3"&gt;ref&lt;/SPAN&gt;=&lt;SPAN class="s4"&gt;"1"&lt;/SPAN&gt;) bl_whoqol16 (&lt;SPAN class="s3"&gt;ref&lt;/SPAN&gt;=&lt;SPAN class="s4"&gt;"1"&lt;/SPAN&gt;) educ (&lt;SPAN class="s3"&gt;ref&lt;/SPAN&gt;=&lt;SPAN class="s4"&gt;"0"&lt;/SPAN&gt;) /&lt;SPAN class="s3"&gt;param&lt;/SPAN&gt;=ref;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s3"&gt;model&lt;/SPAN&gt; vs=&lt;/P&gt;&lt;P class="p2"&gt;pills /*continuous*/&lt;/P&gt;&lt;P class="p2"&gt;educ&lt;/P&gt;&lt;P class="p2"&gt;agyw&lt;/P&gt;&lt;P class="p2"&gt;bl_partner&lt;/P&gt;&lt;P class="p2"&gt;homeless /*dichotomous*/&lt;/P&gt;&lt;P class="p2"&gt;venue&lt;/P&gt;&lt;P class="p2"&gt;bl_pimp&lt;/P&gt;&lt;P class="p2"&gt;anyviol&lt;/P&gt;&lt;P class="p2"&gt;bl_whoqol12&lt;/P&gt;&lt;P class="p2"&gt;bl_whoqol16&lt;/P&gt;&lt;P class="p2"&gt;bl_alcohol_freq&lt;/P&gt;&lt;P class="p2"&gt;druguse_mj&lt;/P&gt;&lt;P class="p2"&gt;support&lt;/P&gt;&lt;P class="p2"&gt;phq9_cat&lt;/P&gt;&lt;P class="p2"&gt;pills*homeless/&lt;SPAN class="s3"&gt;Dist&lt;/SPAN&gt;=poisson &lt;SPAN class="s3"&gt;Link&lt;/SPAN&gt;=log;&lt;/P&gt;&lt;P class="p1"&gt;Repeatedsubject&lt;SPAN class="s2"&gt; = pid / &lt;/SPAN&gt;type&lt;SPAN class="s2"&gt;=Ind;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s3"&gt;slice&lt;/SPAN&gt; pills*homeless / &lt;SPAN class="s3"&gt;sliceby&lt;/SPAN&gt;(pills=&lt;SPAN class="s4"&gt;'homeless'&lt;/SPAN&gt;) &lt;SPAN class="s3"&gt;diff&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;oddsratio&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s3"&gt;title&lt;/SPAN&gt; 'VS on pills shared (last 30 days) robust poisson'&lt;SPAN class="s2"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p4"&gt;&lt;SPAN class="s2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s2"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p4"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 20:43:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723632#M35080</guid>
      <dc:creator>amcr729</dc:creator>
      <dc:date>2021-03-04T20:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Probing interactions in robust poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723645#M35081</link>
      <description>&lt;P&gt;See the discussion in &lt;A href="http://support.sas.com/kb/67024" target="_self"&gt;this note&lt;/A&gt;&amp;nbsp;regarding estimating the effect of a continuous variable involved in interaction, particularly&amp;nbsp;the "Continuous-categorical interaction in a log-linked model" section.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 21:02:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723645#M35081</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-03-04T21:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Probing interactions in robust poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723880#M35089</link>
      <description>&lt;P&gt;Thanks for catching that educ and homeless were not included in class statement -- this was intentional for homeless (which is binary 1=event vs 0, so no need to put in class statement for proper comparisons to be made, in my understanding?) but not intentional for educ, which has &amp;gt;2 categories.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 14:38:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Probing-interactions-in-robust-poisson-model/m-p/723880#M35089</guid>
      <dc:creator>amcr729</dc:creator>
      <dc:date>2021-03-05T14:38:56Z</dc:date>
    </item>
  </channel>
</rss>

