<?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 Plots in SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-Plots-in-SAS/m-p/419333#M22081</link>
    <description>&lt;P&gt;I have attached the graph output as well as the code that I used for the graph and the code I used for the model.&amp;nbsp; Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2017 20:29:25 GMT</pubDate>
    <dc:creator>lboyd</dc:creator>
    <dc:date>2017-12-07T20:29:25Z</dc:date>
    <item>
      <title>Interaction Plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-Plots-in-SAS/m-p/419253#M22076</link>
      <description>&lt;P&gt;My outcome variable is categorical (4 categories: very low, low, moderate, high), and my predictor variables are categorical. One has 3 categories and is year (year1, year2, year3). Year was not included in the class statement. The second is yes/no. And then it is controlled for other covariates.&amp;nbsp; I ran proc glimmix with an interaction term between the two and the interaction term is significant.&amp;nbsp; I am trying to understand what this interaction means from the estimate output and therefore am trying to look at the interaction plot but what I ran did not work. Any help in interpreting this interaction term (via interaction plots if necessary) would be great.&amp;nbsp; Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=data;&lt;BR /&gt;by predictor year;&lt;BR /&gt;run;&lt;BR /&gt;proc means data=data noprint;&lt;BR /&gt;by predictor year;&lt;BR /&gt;var outcome;&lt;BR /&gt;output out=meaned mean=mmoutcome;&lt;BR /&gt;run;&lt;BR /&gt;proc plot data=meaned;&lt;BR /&gt;plot mmoutcome*predictor=year;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Output&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; predictor &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Estimate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard Error&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t&amp;nbsp;Value &amp;nbsp;&amp;nbsp; Pr &amp;gt; |t|&lt;/P&gt;&lt;P&gt;year*predictor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.4159&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 0.1688&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 765&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.46&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0140&lt;/P&gt;&lt;P&gt;year*predictor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 17:18:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-Plots-in-SAS/m-p/419253#M22076</guid>
      <dc:creator>lboyd</dc:creator>
      <dc:date>2017-12-07T17:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction Plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-Plots-in-SAS/m-p/419271#M22077</link>
      <description>&lt;P&gt;Doesn't work is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the {i} to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide input data in the form of a dataset, the actual results and the expected results. Data should be in the form of a data step. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat&lt;/A&gt;... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also want to consider use of Proc Sgplot as it has many more options that Proc Plot and can combine plots into a single graph within limits.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 18:06:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-Plots-in-SAS/m-p/419271#M22077</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-07T18:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction Plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-Plots-in-SAS/m-p/419291#M22078</link>
      <description>There were no errors in the log. I'm unsure how to send you the graph so I will describe it to you. Also, the link you sent me no longer exists. The graph had year on the x-axis and outcome on the y axis. At the top it said symbol is value of predictor. There was a 1 (symbol) at 3.11 for Year1, 1 (symbol) at 3.1 for Year2, and 1 (symbol) at 3.01 for Year3. There was a 0 (symbol) at 2.8 for Year1, at 2.61 for Year2, and 2.56 at Year3.&lt;BR /&gt;&lt;BR /&gt;Do you use vbar with proc sgplot?</description>
      <pubDate>Thu, 07 Dec 2017 18:53:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-Plots-in-SAS/m-p/419291#M22078</guid>
      <dc:creator>lboyd</dc:creator>
      <dc:date>2017-12-07T18:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction Plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-Plots-in-SAS/m-p/419294#M22079</link>
      <description>Also, can you tell from the output of proc glimmix I posted what is going on with the interaction term or do you have to have an interaction to determine what it means?</description>
      <pubDate>Thu, 07 Dec 2017 18:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-Plots-in-SAS/m-p/419294#M22079</guid>
      <dc:creator>lboyd</dc:creator>
      <dc:date>2017-12-07T18:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction Plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-Plots-in-SAS/m-p/419296#M22080</link>
      <description>&lt;P&gt;If you have an image file of the result, if you are generating html output by default the resulting PNG file is likely in your the folder where your Work library resides and you can post the image using the forums menu icon that looks like a camera and says "Photos".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure of your question about Vbar and Sgplot. Yes I have used it personally, if that is the question. I have used most of the options in Sgplot or Sgpanel as well as GTL and Sgrender to make some moderately complex plots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will say that for interactions I might start with the raw data first and not the results of model to show general relationships. Then the model results might make more sense.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 19:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-Plots-in-SAS/m-p/419296#M22080</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-07T19:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction Plots in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-Plots-in-SAS/m-p/419333#M22081</link>
      <description>&lt;P&gt;I have attached the graph output as well as the code that I used for the graph and the code I used for the model.&amp;nbsp; Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 20:29:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-Plots-in-SAS/m-p/419333#M22081</guid>
      <dc:creator>lboyd</dc:creator>
      <dc:date>2017-12-07T20:29:25Z</dc:date>
    </item>
  </channel>
</rss>

