<?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 MIANALYZE with option BY in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-option-BY/m-p/573022#M28193</link>
    <description>&lt;P&gt;Thank you for your answer. I am going tried also with more imputations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clémence&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2019 09:51:21 GMT</pubDate>
    <dc:creator>Clemence</dc:creator>
    <dc:date>2019-07-12T09:51:21Z</dc:date>
    <item>
      <title>PROC MIANALYZE with option BY</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-option-BY/m-p/571999#M28172</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I make an multiple imputation from an uniform distribution. So, I create 5 dataset with each a different seed for the distribution uniforme to have different dataset. Then I concatenate the5 dataset in a single dataset "Mimpute".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realize a mixted model on this dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, I use PROC MIANALYZE to pooling results. But when I count how many I have p-value &amp;lt; 0.05, I obtain a number very small number, and this number does not match with the number for each imputation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I make that for 1000 simulations, so the variable simul indicated the simulation number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, my code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed data=Mimpute method=reml ;&lt;BR /&gt;class prod (ref="Placebo") TV_VISIT_TMP(ref="V1") id_bis;&lt;BR /&gt;model changeVn_V0 = prod TV_VISIT_TMP prod*TV_VISIT_TMP / s ddfm=kenwardroger;&lt;BR /&gt;repeated TV_VISIT_TMP / subject=id_bis type=CS;&lt;BR /&gt;lsmeans prod*TV_VISIT_TMP / slice=TV_VISIT_TMP cl;&lt;BR /&gt;slice prod*TV_VISIT_TMP / sliceby(TV_VISIT_TMP="V1") cl pdiff=control("Placebo" "V1");&lt;BR /&gt;slice prod*TV_VISIT_TMP / sliceby(TV_VISIT_TMP="V2") cl pdiff=control("Placebo" "V2");&lt;BR /&gt;by simul _Imputation_;&lt;BR /&gt;ods output SolutionF=mixparms ;&lt;BR /&gt;ods output SliceDiffs=slicev1v2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mianalyze parms(classvar=full)=mixparms ;&lt;BR /&gt;class prod TV_VISIT_TMP;&lt;BR /&gt;modeleffects Intercept prod TV_VISIT_TMP prod*TV_VISIT_TMP ;&lt;BR /&gt;by simul;&lt;BR /&gt;ods output ParameterEstimates=param_simul;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To count the number of global p-value of interaction &amp;lt;0.05, I do :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data param_simul;&lt;BR /&gt;set param_simul;&lt;BR /&gt;where Parm="prod*TV_VISIT_TMP" AND prod="Actif" AND TV_VISIT_TMP="V2" ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select count(simul)&lt;BR /&gt;from param_simul&lt;BR /&gt;where Probt &amp;lt; 0.05;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I obtain 45/1000. But, in each imputation, I obtain numbers : 127/1000, 129/1000, 133/1000, 127/1000, 144/1000. For me, after PROC MIANALYZE, I should get a number arround 130/1000 because I combine the different imputations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me please ? I think that it's the statement 'by' of proc mianalyze which is the problem....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks;&lt;/P&gt;&lt;P&gt;Clemence&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 11:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-option-BY/m-p/571999#M28172</guid>
      <dc:creator>Clemence</dc:creator>
      <dc:date>2019-07-09T11:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE with option BY</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-option-BY/m-p/572352#M28180</link>
      <description>&lt;P&gt;I would say that first you probably should be using more than 5 imputed data sets, especially if your fraction of missing information is high (see the table of Relative Efficiency &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=15.1&amp;amp;docsetTarget=statug_mi_details54.htm&amp;amp;locale=en" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This may make the results closer to what you are expecting, but quite frankly, your expectations are not correct.&amp;nbsp; If the combined estimates factored in only the within imputation variances, then it would be correct.&amp;nbsp; But it also includes the between imputation variance, which naturally will raise the variance of the estimates.&amp;nbsp; This is the price you pay for the uncertainty associated with imputation.&amp;nbsp; Therefore, you should expect that the number of significant estimates will be less (and often significantly less so) than any of the individual imputations.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 13:43:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-option-BY/m-p/572352#M28180</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2019-07-10T13:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE with option BY</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-option-BY/m-p/573022#M28193</link>
      <description>&lt;P&gt;Thank you for your answer. I am going tried also with more imputations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clémence&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 09:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-option-BY/m-p/573022#M28193</guid>
      <dc:creator>Clemence</dc:creator>
      <dc:date>2019-07-12T09:51:21Z</dc:date>
    </item>
  </channel>
</rss>

