<?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 PLM is Plotting Conditional Predicted Values? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-PLM-is-Plotting-Conditional-Predicted-Values/m-p/676948#M32449</link>
    <description>&lt;P&gt;See the examples and discussion in &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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Briefly: &lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;use PROC PLM to obtain a graph of the predictions from the "marginal model" that contains the &lt;STRONG&gt;fixed effects&lt;/STRONG&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;The OUTPRED= option on the MODEL statement creates an output data set in which the predicted values incorporate &lt;STRONG&gt;random effects&lt;/STRONG&gt; for each subject. Then use PROC SGPLOT to graph them, as shown in the article.&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Sat, 15 Aug 2020 10:39:28 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2020-08-15T10:39:28Z</dc:date>
    <item>
      <title>Proc PLM is Plotting Conditional Predicted Values?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-PLM-is-Plotting-Conditional-Predicted-Values/m-p/676903#M32445</link>
      <description>&lt;P&gt;I've run a mixed model and want to plot the Actual by. Predicted values.&amp;nbsp; In JMP you can plot the predicted values or the Conditional predicted values (the values with Random Effects included) as the x-var.&amp;nbsp; I see that in Proc Mixed you have the option of saving the predicted values as OUTPRED=filename but is this using the Predicted or Conditional Predicted values?&amp;nbsp; Then, how do I graph them?&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, is it better to use Proc PLM?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=source;
  class hyb ntrt;
  model y = a b a*b / redidual outpred=predicted;
  random hyb ntrt hyb*ntrt ;
  lsmeans a b / pdiff=all cl adjust=tukey alpha=0.10;
  title 'Model A';
  store ModA;
run;

proc plm restore=ModA;
  effectplot;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Aug 2020 22:06:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-PLM-is-Plotting-Conditional-Predicted-Values/m-p/676903#M32445</guid>
      <dc:creator>Daisy2</dc:creator>
      <dc:date>2020-08-14T22:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc PLM is Plotting Conditional Predicted Values?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-PLM-is-Plotting-Conditional-Predicted-Values/m-p/676948#M32449</link>
      <description>&lt;P&gt;See the examples and discussion in &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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Briefly: &lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;use PROC PLM to obtain a graph of the predictions from the "marginal model" that contains the &lt;STRONG&gt;fixed effects&lt;/STRONG&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;The OUTPRED= option on the MODEL statement creates an output data set in which the predicted values incorporate &lt;STRONG&gt;random effects&lt;/STRONG&gt; for each subject. Then use PROC SGPLOT to graph them, as shown in the article.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sat, 15 Aug 2020 10:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-PLM-is-Plotting-Conditional-Predicted-Values/m-p/676948#M32449</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-08-15T10:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc PLM is Plotting Conditional Predicted Values?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-PLM-is-Plotting-Conditional-Predicted-Values/m-p/676965#M32453</link>
      <description>&lt;P&gt;Thanks for your help with this. This is what I ended up adding:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=source;
  class hyb ntrt;
  model tnc = a b a*b / residual outpred=predicted;
  random hyb ntrt hyb*ntrt ;
  lsmeans a b / pdiff=all cl adjust=tukey alpha=0.10;
  title 'Model A';
  store ModA;
run;

proc sgplot data=predicted;
  title "Predicted vs Actual Graph";
  scatter x=Pred y=tnc;
  lineparm x=0 y=0 slope=1; /** intercept, slope **/
  xaxis grid; yaxis grid;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Aug 2020 13:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-PLM-is-Plotting-Conditional-Predicted-Values/m-p/676965#M32453</guid>
      <dc:creator>Daisy2</dc:creator>
      <dc:date>2020-08-15T13:43:13Z</dc:date>
    </item>
  </channel>
</rss>

