<?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 Proc mixed, Proc plm effectplot, and multiple imputation in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-Proc-plm-effectplot-and-multiple-imputation/m-p/929477#M46303</link>
    <description>&lt;P&gt;Dear all experts,&lt;/P&gt;
&lt;P&gt;I'm running a linear mixed model and then plotting the trajectory figure using a plm effectplot. However, my data contains several missing covariates, which the mixed model cannot handle. Therefore, I plan to run multiple imputation to impute the missing covariates. The challenge I'm facing is obtaining a 'pooled' figure from the imputed datasets. Is anyone familiar with this method? Thank you very much."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've attached my code, which works well. However, it only generates five separate figures instead of a 'pooled' figure:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc mi data=test&amp;nbsp; &amp;nbsp; &amp;nbsp;nimpute=5 out=mi_fcs ;&lt;BR /&gt;class a b c d e;&lt;BR /&gt;fcs logistic (a b c d e);&lt;BR /&gt;var a b c d e; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC MIXED DATA = mi_fcs METHOD = REML COVTEST;&lt;BR /&gt;CLASS id time_(ref="6") a b c d e;&lt;BR /&gt;MODEL Score = time_ a b c d e/ SOLUTION OUTpred=PREDDATA S CL;&lt;BR /&gt;RANDOM INTERCEPT / SUBJECT = id;&lt;BR /&gt;repeated time_ / type=ar(1) sub=id; &lt;BR /&gt;LSMEANS time_ /pdiff;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ods output solutionf=gm;&lt;/P&gt;
&lt;P&gt;store out=MixedModel; &lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc plm restore=MixedModel;&lt;BR /&gt;effectplot interaction (x=time_ sliceby=a) / clm connect;&lt;/P&gt;
&lt;P&gt;proc print data=gm ;&lt;BR /&gt;run ;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc mianalyze parms(classvar=full)=gm;&lt;BR /&gt;class time_ a b c d e;&lt;BR /&gt;modeleffects time_ a b c d e;&lt;BR /&gt;ods output parameterestimates=outcombine_random ;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=outcombine_random noobs ;&lt;BR /&gt;var parm estimate stderr tvalue probt ;&lt;BR /&gt;run ; &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2024 19:48:43 GMT</pubDate>
    <dc:creator>GiaLee</dc:creator>
    <dc:date>2024-05-23T19:48:43Z</dc:date>
    <item>
      <title>Proc mixed, Proc plm effectplot, and multiple imputation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-Proc-plm-effectplot-and-multiple-imputation/m-p/929477#M46303</link>
      <description>&lt;P&gt;Dear all experts,&lt;/P&gt;
&lt;P&gt;I'm running a linear mixed model and then plotting the trajectory figure using a plm effectplot. However, my data contains several missing covariates, which the mixed model cannot handle. Therefore, I plan to run multiple imputation to impute the missing covariates. The challenge I'm facing is obtaining a 'pooled' figure from the imputed datasets. Is anyone familiar with this method? Thank you very much."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've attached my code, which works well. However, it only generates five separate figures instead of a 'pooled' figure:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc mi data=test&amp;nbsp; &amp;nbsp; &amp;nbsp;nimpute=5 out=mi_fcs ;&lt;BR /&gt;class a b c d e;&lt;BR /&gt;fcs logistic (a b c d e);&lt;BR /&gt;var a b c d e; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC MIXED DATA = mi_fcs METHOD = REML COVTEST;&lt;BR /&gt;CLASS id time_(ref="6") a b c d e;&lt;BR /&gt;MODEL Score = time_ a b c d e/ SOLUTION OUTpred=PREDDATA S CL;&lt;BR /&gt;RANDOM INTERCEPT / SUBJECT = id;&lt;BR /&gt;repeated time_ / type=ar(1) sub=id; &lt;BR /&gt;LSMEANS time_ /pdiff;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ods output solutionf=gm;&lt;/P&gt;
&lt;P&gt;store out=MixedModel; &lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc plm restore=MixedModel;&lt;BR /&gt;effectplot interaction (x=time_ sliceby=a) / clm connect;&lt;/P&gt;
&lt;P&gt;proc print data=gm ;&lt;BR /&gt;run ;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc mianalyze parms(classvar=full)=gm;&lt;BR /&gt;class time_ a b c d e;&lt;BR /&gt;modeleffects time_ a b c d e;&lt;BR /&gt;ods output parameterestimates=outcombine_random ;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=outcombine_random noobs ;&lt;BR /&gt;var parm estimate stderr tvalue probt ;&lt;BR /&gt;run ; &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 19:48:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-Proc-plm-effectplot-and-multiple-imputation/m-p/929477#M46303</guid>
      <dc:creator>GiaLee</dc:creator>
      <dc:date>2024-05-23T19:48:43Z</dc:date>
    </item>
  </channel>
</rss>

