<?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: Proc Mixed multiple class variable interactions in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-class-continuous-variable-interactions/m-p/627649#M30183</link>
    <description>&lt;P&gt;Is the question that you want to understand these coefficients and maybe even do "pencil and paper" calculations?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or is the question that you want to take this model and do predictions and generate plots that could show the slopes computed by the model? Because in this case, you could use &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_plm_overview.htm&amp;amp;locale=en" target="_self"&gt;PROC PLM&lt;/A&gt; to get all of the information about the model.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2020 20:17:28 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-02-26T20:17:28Z</dc:date>
    <item>
      <title>Proc Mixed class/continuous variable interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-class-continuous-variable-interactions/m-p/627638#M30181</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a question about calculating the simple slopes in a proc mixed solution with multiple class variables interacting with a continuous variables. Because of how these class variables are dummy coded, a class*class*continuous variable interaction has left me a little cautious on how to add the SAS output.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let's say I have a Dependent Variable A and Independent variables X that is continuous and Y and Z that are class variables. Some easy coefficients as they would appear in SAS output are shown below:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;X&amp;nbsp; =&amp;nbsp; 5 - this is at Y3*Z3 because of the dummy coding, that is, the b slope of A = bX + intercept is 5 a when in condition Y3 and Z3.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;X*Y1 = 2&amp;nbsp; &amp;nbsp;- this would be change from X at Y3 and&amp;nbsp;Z3, so 7 would be the b slope when in condition Y1 and Z3&lt;/DIV&gt;&lt;DIV&gt;X*Y2 = 1 - this would be 6&lt;/DIV&gt;&lt;DIV&gt;X*Y3 =&amp;nbsp; NA - this should be 5&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;X*Z1 = -2&amp;nbsp; - as above&lt;/DIV&gt;&lt;DIV&gt;X*Z2 = -1&lt;/DIV&gt;&lt;DIV&gt;X*Z3 = NA - this should be 5&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This is where the confusion comes, calculating the simple slopes:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;X*Y1*Z1 = -.5&amp;nbsp; &amp;nbsp;- Is this the change from X*Y1 or the change from X*Y3?&lt;/DIV&gt;&lt;DIV&gt;X*Y1*Z2 = -.6&amp;nbsp; &amp;nbsp;- So should this be (5 - .6) = 4.4?,&amp;nbsp; &amp;nbsp;5&amp;nbsp;+ (2 - .6) = 6.6 or (5&amp;nbsp;+ 2) - .6 = 6.6?&amp;nbsp; I know the last 2 are the same, just curious about how they are supposed to be combined.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;X*Y1*Z3 = NA - This should be X at Y1 or 5+2=7&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So effectively I am trying to calculate/understand what the b slope of A = bX + intercept is at Y1 and Z1 plus the other 3 conditions to compare and plot the relationship between X and A at different combinations of Y and Z.&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:13:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-class-continuous-variable-interactions/m-p/627638#M30181</guid>
      <dc:creator>rhampton16</dc:creator>
      <dc:date>2020-02-26T21:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mixed multiple class variable interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-class-continuous-variable-interactions/m-p/627649#M30183</link>
      <description>&lt;P&gt;Is the question that you want to understand these coefficients and maybe even do "pencil and paper" calculations?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or is the question that you want to take this model and do predictions and generate plots that could show the slopes computed by the model? Because in this case, you could use &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_plm_overview.htm&amp;amp;locale=en" target="_self"&gt;PROC PLM&lt;/A&gt; to get all of the information about the model.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 20:17:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-class-continuous-variable-interactions/m-p/627649#M30183</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-02-26T20:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mixed multiple class variable interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-class-continuous-variable-interactions/m-p/627653#M30184</link>
      <description>I guess I would say both. Ultimately, it looks like PROC PLM will get me what I need for reporting the slopes computed by the model but it would also help to know what's going on under the hood so that I could verify with "pencil and paper" calculations if I feel that something is not as it should be. Typically with procedures I'm not familiar with I like to have this option until I get a little practice in. Thanks for this reference!</description>
      <pubDate>Wed, 26 Feb 2020 20:26:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-class-continuous-variable-interactions/m-p/627653#M30184</guid>
      <dc:creator>rhampton16</dc:creator>
      <dc:date>2020-02-26T20:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mixed multiple class variable interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-class-continuous-variable-interactions/m-p/627660#M30185</link>
      <description>&lt;P&gt;I understand why you say both ... my opinion is different (but that's not to say you are wrong).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There was a time in my life where I could take the model outputs with class variables and make sense of them, but that was a long time ago, and I'm not sure I can explain them now, or that I would even try. With PROC PLM and other tools, my position now is that I can DRAW pictures of the slopes of interest, and see how they vary as the class variable levels change, and this lets me interpret the model easier and quicker than trying to understand the printed estimates in the PROC MIXED output. If anything doesn't look right in the plots, then this is an indication that maybe I specified the model incorrectly (I no longer think that it is SAS doing the wrong calculations). The plots also allow me to explain the model to others.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 20:47:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-class-continuous-variable-interactions/m-p/627660#M30185</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-02-26T20:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mixed multiple class variable interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-class-continuous-variable-interactions/m-p/627667#M30188</link>
      <description>Oh certainly, and I definitely appreciate the use of PLM and will be sure to utilize it. It's less so that I think that SAS has done something wrong and moreso that I suspect that I have put something in the syntax incorrectly or, as you suggested, specified the model incorrectly. Fortunately, given my familiarity with the data set I'm currently using, I should be able to reverse engineer the algebra that PROC PLM uses.&lt;BR /&gt;&lt;BR /&gt;I'll be sure to post it here if/when I figure it out, thanks again!</description>
      <pubDate>Wed, 26 Feb 2020 20:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-class-continuous-variable-interactions/m-p/627667#M30188</guid>
      <dc:creator>rhampton16</dc:creator>
      <dc:date>2020-02-26T20:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mixed multiple class variable interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-class-continuous-variable-interactions/m-p/627670#M30190</link>
      <description>&lt;P&gt;Actually now I'm not sure it will as LSMEANS/LSMESTIMATE/SLICE all work only on interactions that only include CLASS variables whereas I am trying to calculate a continuous relationship of one IV to the DV at different levels of other CLASS level IVs. Am I reading the Help Center info incorrectly about these statements? I know that I've tried to use LSMEANS before and it won't work, but I thought SLICE might be different. I'll update my post to be more clear.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:02:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-class-continuous-variable-interactions/m-p/627670#M30190</guid>
      <dc:creator>rhampton16</dc:creator>
      <dc:date>2020-02-26T21:02:44Z</dc:date>
    </item>
  </channel>
</rss>

