<?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 Effectplot from PROC MIXED in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Effectplot-from-PROC-MIXED/m-p/697974#M33672</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I raw this model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed data=grouping ;&lt;BR /&gt;class id b;&lt;BR /&gt;model y=time|b/outpred=Pred;&lt;BR /&gt;random intercept /sub=id type=un;&lt;BR /&gt;store out=MixedModel;&lt;BR /&gt;lsmeans b/ at time=(0) diff;&lt;BR /&gt;lsmeans b/ at time=(3) diff;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can use PROC PLM to visualize the effectplot:&lt;/P&gt;&lt;P&gt;proc plm restore=MixedModel;&lt;BR /&gt;effectplot fit(x=time plotby=b)/clm;&amp;nbsp;&lt;BR /&gt;effectplot slicefit(x=time sliceby=b)/clm;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two questions:&lt;/P&gt;&lt;P&gt;1) Is there a way to change how PROC PLM's visuals look? I want to change the formatting!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried this&lt;/P&gt;&lt;P&gt;proc sgplot data=pred;&lt;BR /&gt;band x=timelower=lower upper=upper/group=b transparency=.75;&lt;BR /&gt;series x=time y=pred/group=b;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this graph looks different than the PLM graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 15:10:35 GMT</pubDate>
    <dc:creator>lauragrau</dc:creator>
    <dc:date>2020-12-10T15:10:35Z</dc:date>
    <item>
      <title>Effectplot from PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Effectplot-from-PROC-MIXED/m-p/697974#M33672</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I raw this model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed data=grouping ;&lt;BR /&gt;class id b;&lt;BR /&gt;model y=time|b/outpred=Pred;&lt;BR /&gt;random intercept /sub=id type=un;&lt;BR /&gt;store out=MixedModel;&lt;BR /&gt;lsmeans b/ at time=(0) diff;&lt;BR /&gt;lsmeans b/ at time=(3) diff;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can use PROC PLM to visualize the effectplot:&lt;/P&gt;&lt;P&gt;proc plm restore=MixedModel;&lt;BR /&gt;effectplot fit(x=time plotby=b)/clm;&amp;nbsp;&lt;BR /&gt;effectplot slicefit(x=time sliceby=b)/clm;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two questions:&lt;/P&gt;&lt;P&gt;1) Is there a way to change how PROC PLM's visuals look? I want to change the formatting!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried this&lt;/P&gt;&lt;P&gt;proc sgplot data=pred;&lt;BR /&gt;band x=timelower=lower upper=upper/group=b transparency=.75;&lt;BR /&gt;series x=time y=pred/group=b;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this graph looks different than the PLM graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:10:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Effectplot-from-PROC-MIXED/m-p/697974#M33672</guid>
      <dc:creator>lauragrau</dc:creator>
      <dc:date>2020-12-10T15:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Effectplot from PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Effectplot-from-PROC-MIXED/m-p/697983#M33673</link>
      <description>&lt;P&gt;Show us the plots. Describe what you don't like. Provide screen captures by clicking on the "Insert Photos" and not by attachments.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 20:04:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Effectplot-from-PROC-MIXED/m-p/697983#M33673</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-11-10T20:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Effectplot from PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Effectplot-from-PROC-MIXED/m-p/697986#M33674</link>
      <description>Unfortunately, I can't! It's protected data. Basically, there are only two time points. PROC PLM makes a super nice graph with two lines, clearly showing the interaction. The SGPLOT has vertical lines at 0 and 3, which are then connected.</description>
      <pubDate>Tue, 10 Nov 2020 20:10:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Effectplot-from-PROC-MIXED/m-p/697986#M33674</guid>
      <dc:creator>lauragrau</dc:creator>
      <dc:date>2020-11-10T20:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Effectplot from PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Effectplot-from-PROC-MIXED/m-p/698038#M33675</link>
      <description>&lt;P&gt;There are two kinds of predicted values. The OUTPRED= option outputs the predicted that incorporate the random intercept estimates for each subject. The OUTPREDM= option outputs the marginal (averaged) predictions. These are the same predicted values that you obtain from the STORE statement and PROC PLM.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you want to get the PROC PLM graph, use OUTPREDM=.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For details, an example, and more explanation, see &lt;A href="https://blogs.sas.com/content/iml/2018/12/19/visualize-mixed-model.html" target="_self"&gt;"Visualize a mixed model that has repeated measures or random coefficients,"&lt;/A&gt; especially the last section.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 22:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Effectplot-from-PROC-MIXED/m-p/698038#M33675</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-11-10T22:25:02Z</dc:date>
    </item>
  </channel>
</rss>

