<?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 plot figure for mixed model results in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/plot-figure-for-mixed-model-results/m-p/919232#M45641</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a question on creating a figure using linear mixed model results. The time variable is categorical, and the outcome is a score. My mentor asked me to draw one line in an unadjusted model and then draw one line while adjusting for several covariates. I can easily create the first figure using proc plm (figure 1). However, when I include covariates in the model and use proc plm, it automatically plots the figure and just adjust for effects with the variable after the "time" variable. Could someone assist me with this? Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;unadjusted&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GiaLee_0-1709785664760.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94446i6507C869A3874F7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GiaLee_0-1709785664760.png" alt="GiaLee_0-1709785664760.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC MIXED DATA = a&amp;nbsp; &amp;nbsp;METHOD = REML COVTEST;&lt;BR /&gt;CLASS record_id&amp;nbsp; &amp;nbsp;time(ref="6")&amp;nbsp; &amp;nbsp;younger&amp;nbsp; &amp;nbsp;gender education;&lt;BR /&gt;MODEL Score = time&amp;nbsp; &amp;nbsp;younger gender&amp;nbsp; education/ SOLUTION OUTpred=PREDDATA;&lt;BR /&gt;RANDOM INTERCEPT / SUBJECT = record_id;&lt;BR /&gt;repeated time_ / type=ar(1) sub=record_id; &lt;BR /&gt;store out=MixedModel; &lt;BR /&gt;RUN;&lt;BR /&gt;proc plm restore=MixedModel;&lt;BR /&gt;effectplot interaction (x=time_);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;adjusted&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2024-03-06 at 23.34.38.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94447i16D9F176A5192815/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2024-03-06 at 23.34.38.png" alt="Screen Shot 2024-03-06 at 23.34.38.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 04:40:52 GMT</pubDate>
    <dc:creator>GiaLee</dc:creator>
    <dc:date>2024-03-07T04:40:52Z</dc:date>
    <item>
      <title>plot figure for mixed model results</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/plot-figure-for-mixed-model-results/m-p/919232#M45641</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a question on creating a figure using linear mixed model results. The time variable is categorical, and the outcome is a score. My mentor asked me to draw one line in an unadjusted model and then draw one line while adjusting for several covariates. I can easily create the first figure using proc plm (figure 1). However, when I include covariates in the model and use proc plm, it automatically plots the figure and just adjust for effects with the variable after the "time" variable. Could someone assist me with this? Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;unadjusted&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GiaLee_0-1709785664760.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94446i6507C869A3874F7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GiaLee_0-1709785664760.png" alt="GiaLee_0-1709785664760.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC MIXED DATA = a&amp;nbsp; &amp;nbsp;METHOD = REML COVTEST;&lt;BR /&gt;CLASS record_id&amp;nbsp; &amp;nbsp;time(ref="6")&amp;nbsp; &amp;nbsp;younger&amp;nbsp; &amp;nbsp;gender education;&lt;BR /&gt;MODEL Score = time&amp;nbsp; &amp;nbsp;younger gender&amp;nbsp; education/ SOLUTION OUTpred=PREDDATA;&lt;BR /&gt;RANDOM INTERCEPT / SUBJECT = record_id;&lt;BR /&gt;repeated time_ / type=ar(1) sub=record_id; &lt;BR /&gt;store out=MixedModel; &lt;BR /&gt;RUN;&lt;BR /&gt;proc plm restore=MixedModel;&lt;BR /&gt;effectplot interaction (x=time_);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;adjusted&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2024-03-06 at 23.34.38.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94447i16D9F176A5192815/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2024-03-06 at 23.34.38.png" alt="Screen Shot 2024-03-06 at 23.34.38.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 04:40:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/plot-figure-for-mixed-model-results/m-p/919232#M45641</guid>
      <dc:creator>GiaLee</dc:creator>
      <dc:date>2024-03-07T04:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: plot figure for mixed model results</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/plot-figure-for-mixed-model-results/m-p/919243#M45642</link>
      <description>Check &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; blogs:&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2018/12/19/visualize-mixed-model.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/12/19/visualize-mixed-model.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/05/30/visualize-interaction-effects-regression.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2019/05/30/visualize-interaction-effects-regression.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Mar 2024 06:24:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/plot-figure-for-mixed-model-results/m-p/919243#M45642</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-03-07T06:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: plot figure for mixed model results</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/plot-figure-for-mixed-model-results/m-p/919291#M45644</link>
      <description>Thanks for the reply. These blogs are really helpful for plotting interaction terms. However, I'm looking for a way to plot the figure between time (category) and score, adjusting for several covariates but not the interaction terms. Thanks.</description>
      <pubDate>Thu, 07 Mar 2024 12:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/plot-figure-for-mixed-model-results/m-p/919291#M45644</guid>
      <dc:creator>GiaLee</dc:creator>
      <dc:date>2024-03-07T12:08:46Z</dc:date>
    </item>
  </channel>
</rss>

