<?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: Interaction effects at different values of the standardized moderator in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/668011#M31895</link>
    <description>&lt;P&gt;Is A continuous or categorical?&amp;nbsp; I assume continuous, as you speak of wanting to look at values of A based on the SD.&amp;nbsp; Can you share your current GLIMMIX code?&amp;nbsp; It would be easier to add things in to what you already have than to try to start from scratch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2020 12:20:59 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2020-07-09T12:20:59Z</dc:date>
    <item>
      <title>Interaction effects at different values of the standardized moderator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/667689#M31891</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found a significant interaction effect of moderator A on the association between X and Y. I now want to test and plot at which values of A (-1 SD, 0, +1 SD) the relationship between X and Y significant. I am examining both within and between subject associations using glimmix for drinking frequency (drinks/no drinks) and nlmixed for drinking quantity (count data), however, I only found a significant interaction effect at the within-person level.&lt;/P&gt;&lt;P&gt;Any help with this would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 12:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/667689#M31891</guid>
      <dc:creator>Laian_N</dc:creator>
      <dc:date>2020-07-08T12:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction effects at different values of the standardized moderator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/668011#M31895</link>
      <description>&lt;P&gt;Is A continuous or categorical?&amp;nbsp; I assume continuous, as you speak of wanting to look at values of A based on the SD.&amp;nbsp; Can you share your current GLIMMIX code?&amp;nbsp; It would be easier to add things in to what you already have than to try to start from scratch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 12:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/668011#M31895</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-07-09T12:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction effects at different values of the standardized moderator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/668019#M31896</link>
      <description>&lt;P&gt;Yes, most certainly. Here is the GLIMMIX code. And yes, A is continuous and so is my predictor variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix data=SHB.Days_final lognote;&lt;BR /&gt;class IDnum Days_c;&lt;BR /&gt;model Freq = DDmodmet_c|SS_sd DDmodmet_dev|SS_sd DDvigmet_c|SS_sd DDvigmet_dev|SS_sd&lt;BR /&gt;DDmodmet_c|PU_sd &lt;FONT color="#FF0000"&gt;DDmodmet_dev|PU_sd&lt;/FONT&gt; DDvigmet_c|PU_sd DDvigmet_dev|PU_sd&lt;BR /&gt;DDmodmet_c|NU_sd DDmodmet_dev|NU_sd DDvigmet_c|NU_sd DDvigmet_dev|NU_sd&lt;BR /&gt;DDmodmet_c|pers_sd DDmodmet_dev|pers_sd DDvigmet_c|pers_sd DDvigmet_dev|pers_sd&lt;BR /&gt;DDmodmet_c|prem_sd DDmodmet_dev|prem_sd DDvigmet_c|prem_sd DDvigmet_dev|prem_sd male Weekend PreviousFreq Days_c / solution dist= binomial ddfm=kr2;&lt;BR /&gt;random intercept / subject=IDnum;&lt;BR /&gt;random Days_c / subject=IDnum type=ar(1) residual;&lt;BR /&gt;nloptions tech= nrrdg maxiter=500;&lt;BR /&gt;store SHB.IMPinteractions / label='Interactions with IMP';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only the interaction in red was significant.&amp;nbsp;I used the STORE statement to then test significant interactions for different values of A (here PU_sd) and plot them using PROC PLM. However, I was only able to plot but not run the test of significance on the different values of A (here PU_sd), since GLIMMIX does not support the SLICE option. I am wondering if there are any alternative options for SLICE that are supported by GLIMMIX, or any other ways I can do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I was successfully able to visualize the interactions for different values of PU_sd with the code below:&lt;/P&gt;&lt;P&gt;proc plm restore=SHB.IMPinteractions;&lt;BR /&gt;effectplot slicefit(x=DDmodmet_dev sliceby=PU_sd);&lt;BR /&gt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;This is the code I tried for the test of significance:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;proc plm restore=SHB.IMPinteractions;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;test;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;slice DDmodmet_dev*PU_sd;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;effectplot;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;run;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 12:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/668019#M31896</guid>
      <dc:creator>Laian_N</dc:creator>
      <dc:date>2020-07-09T12:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction effects at different values of the standardized moderator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/668025#M31897</link>
      <description>&lt;P&gt;Well, GLIMMIX does support the SLICE statement but for your work it won't make much sense, as it usually means testing for simple effects at a given level of a categorical variable.&amp;nbsp; I think you will need to use the AT option in an LSMEANS statement.&amp;lt;--EDIT: Won't work as both elements are continuous.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like this might give what you are looking for, but only if DDmodmet_de is a categorical variable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc plm restore=SHB.IMPinteractions;
lsmeans DDmodmet_dev/diff AT means;
lsmeans DDmodmet_dev/diff AT PU_sd= &amp;lt;a low value, say mean - 1sd)&amp;gt;;
lsmeans DDmodmet_dev/diff AT PU_sd= &amp;lt;a high value, say mean + 1sd)&amp;gt;;
effectplot (PLOTBY=DDmodmet_dev, X=PU_sd);
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It appears that the AT option doesn't support multiple values for a single continuous covariate, so there are multiple LSMEANS statements.&amp;nbsp; You might want to add more depending on the range of PU_sd.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: I missed the point that DDmodmet_de is continuous as well. That makes everything somewhat more difficult.&amp;nbsp; The EFFECTPLOT statement won't work as the PLOTBY variable is not categorical (plus I forgot to specify the FIT suboption). The same applies to the LSMEANS statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the EFFECTPLOT, you might try EFFECTPLOT (contour PLOTBY=Freq X=&lt;FONT size="4"&gt;&lt;CODE class=" language-sas"&gt;DDmodmet_dev Y=PU_sd).&lt;/CODE&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;For tests, I think you will probably have to wrie a bunch of ESTIMATE statements that look something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ESTIMATE&amp;nbsp;'point&amp;nbsp;(x1,&amp;nbsp;y1)'&amp;nbsp;intercept&amp;nbsp;1&amp;nbsp;DDmodmet_dev&amp;nbsp;&amp;lt;insert&amp;nbsp;a&amp;nbsp;value&amp;nbsp;for&amp;nbsp;this&amp;nbsp;-&amp;nbsp;X1&amp;nbsp;as&amp;nbsp;an&amp;nbsp;example&amp;gt;&amp;nbsp;PU_sd&amp;nbsp;&amp;lt;insert&amp;nbsp;a&amp;nbsp;value&amp;nbsp;for&amp;nbsp;this&amp;nbsp;-&amp;nbsp;Y1&amp;nbsp;as&amp;nbsp;an&amp;nbsp;example&amp;gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'point&amp;nbsp;(x2,&amp;nbsp;y1)'&amp;nbsp;intercept&amp;nbsp;1&amp;nbsp;DDmodmet_dev&amp;nbsp;&amp;lt;insert&amp;nbsp;a&amp;nbsp;value&amp;nbsp;for&amp;nbsp;this&amp;nbsp;-&amp;nbsp;X2&amp;nbsp;as&amp;nbsp;an&amp;nbsp;example&amp;gt;&amp;nbsp;PU_sd&amp;nbsp;&amp;lt;insert&amp;nbsp;a&amp;nbsp;value&amp;nbsp;for&amp;nbsp;this&amp;nbsp;-&amp;nbsp;Y1&amp;nbsp;as&amp;nbsp;an&amp;nbsp;example&amp;gt;,
...
 &amp;nbsp;       'point&amp;nbsp;(xN,&amp;nbsp;y1)'&amp;nbsp;intercept&amp;nbsp;1&amp;nbsp;DDmodmet_dev&amp;nbsp;&amp;lt;insert&amp;nbsp;a&amp;nbsp;value&amp;nbsp;for&amp;nbsp;this&amp;nbsp;-&amp;nbsp;XN&amp;nbsp;as&amp;nbsp;an&amp;nbsp;example&amp;gt;&amp;nbsp;PU_sd&amp;nbsp;&amp;lt;insert&amp;nbsp;a&amp;nbsp;value&amp;nbsp;for&amp;nbsp;this&amp;nbsp;-&amp;nbsp;Y1&amp;nbsp;as&amp;nbsp;an&amp;nbsp;example&amp;gt;,
         'point&amp;nbsp;(x1,&amp;nbsp;y2)'&amp;nbsp;intercept&amp;nbsp;1&amp;nbsp;DDmodmet_dev&amp;nbsp;&amp;lt;insert&amp;nbsp;a&amp;nbsp;value&amp;nbsp;for&amp;nbsp;this&amp;nbsp;-&amp;nbsp;X1&amp;nbsp;as&amp;nbsp;an&amp;nbsp;example&amp;gt;&amp;nbsp;PU_sd&amp;nbsp;&amp;lt;insert&amp;nbsp;a&amp;nbsp;value&amp;nbsp;for&amp;nbsp;this&amp;nbsp;-&amp;nbsp;Y2&amp;nbsp;as&amp;nbsp;an&amp;nbsp;example&amp;gt;,
...
&amp;nbsp;        'point&amp;nbsp;(xN,&amp;nbsp;yM)'&amp;nbsp;intercept&amp;nbsp;1&amp;nbsp;DDmodmet_dev&amp;nbsp;&amp;lt;insert&amp;nbsp;a&amp;nbsp;value&amp;nbsp;for&amp;nbsp;this&amp;nbsp;-&amp;nbsp;XN&amp;nbsp;as&amp;nbsp;an&amp;nbsp;example&amp;gt;&amp;nbsp;PU_sd&amp;nbsp;&amp;lt;insert&amp;nbsp;a&amp;nbsp;value&amp;nbsp;for&amp;nbsp;this&amp;nbsp;-&amp;nbsp;YM&amp;nbsp;as&amp;nbsp;an&amp;nbsp;example&amp;gt;/ILINK;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 13:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/668025#M31897</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-07-09T13:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction effects at different values of the standardized moderator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/668029#M31898</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/327376"&gt;@Laian_N&lt;/a&gt;&amp;nbsp;, I just thought of something a bit scary - you are fitting a large number of effects (61 + number of days in Days_c, by my count).&amp;nbsp; Finding only one interaction significant may be just an artifact.&amp;nbsp; I would sort of expect about 3 effects to be significant at the 0.05 level if I were fitting random numbers.&amp;nbsp; You may want to try GLMSELECT with a LASSO or elasticnet variable selection method to reduce the dimensionality of your&amp;nbsp;&lt;STRONG&gt;X'beta&lt;/STRONG&gt; matrix, and then see if there are any interactions to be investigated.&amp;nbsp; Or perhaps you can use some prior knowledge to eliminate some of the variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are likely some data science approaches that would be more fruitful as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 13:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/668029#M31898</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-07-09T13:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction effects at different values of the standardized moderator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/668034#M31899</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggested code. I tried it and it gave me this message:&amp;nbsp;ERROR: Only CLASS variables allowed in this effect. Are there any other ways I can find at which values of the moderator is the interaction significant?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 13:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/668034#M31899</guid>
      <dc:creator>Laian_N</dc:creator>
      <dc:date>2020-07-09T13:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction effects at different values of the standardized moderator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/668044#M31900</link>
      <description>&lt;P&gt;I apologize.&amp;nbsp; I edited my response to recognize that, and added the only way I could think of to do the testing for two continuous covariates in this setting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 14:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/668044#M31900</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-07-09T14:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction effects at different values of the standardized moderator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/669141#M31949</link>
      <description>&lt;P&gt;Thanks very much for the helpful suggestions. Regarding overfitting, I did run the models with fewer variables based on information from prior studies and found similar results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 11:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/669141#M31949</guid>
      <dc:creator>Laian_N</dc:creator>
      <dc:date>2020-07-14T11:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction effects at different values of the standardized moderator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/669409#M31959</link>
      <description>&lt;P&gt;Could you post the pertinent section of the log where this error occurs?&amp;nbsp; See the post by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1708"&gt;@sld&lt;/a&gt;&amp;nbsp; on this topic &lt;A href="https://communities.sas.com/t5/Statistical-Procedures/How-to-write-estimate-statements-for-continuous-by-continuous/td-p/195736" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Statistical-Procedures/How-to-write-estimate-statements-for-continuous-by-continuous/td-p/195736&lt;/A&gt;&amp;nbsp;for an example of continuous by continuous interactions using ESTIMATE statements. The post by the OP in that thread looks like they were also trying to look for the effect of a moderating variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 11:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/669409#M31959</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-07-15T11:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction effects at different values of the standardized moderator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/669551#M31969</link>
      <description>&lt;P&gt;I'd be happy to take credit, but that was &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13758"&gt;@lvm&lt;/a&gt; 's solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 16:03:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/669551#M31969</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2020-07-15T16:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction effects at different values of the standardized moderator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/669605#M31974</link>
      <description>&lt;P&gt;Disconnect on the eye-brain-fingers circuit...&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 17:28:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/669605#M31974</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-07-15T17:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction effects at different values of the standardized moderator</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/669638#M31984</link>
      <description>&lt;P&gt;I am flattered to be confused with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13758"&gt;@lvm&lt;/a&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 18:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-effects-at-different-values-of-the-standardized/m-p/669638#M31984</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2020-07-15T18:15:04Z</dc:date>
    </item>
  </channel>
</rss>

