<?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: ERROR: At least two imputations are required for PROC MIANALYZE. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-two-imputations-are-required-for-PROC-MIANALYZE/m-p/740527#M231342</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;There is nothing wrong with your macro as far as I can assess.&lt;/P&gt;
&lt;P&gt;I have no experience with PROC MIANALYZE but, to my understanding,&lt;/P&gt;
&lt;P&gt;you have only 1 imputation for each by-group (or for some of the by-groups) and you need at least two to run a successful PROC MIANALYZE.&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Tue, 11 May 2021 15:52:48 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2021-05-11T15:52:48Z</dc:date>
    <item>
      <title>ERROR: At least two imputations are required for PROC MIANALYZE.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-two-imputations-are-required-for-PROC-MIANALYZE/m-p/740513#M231334</link>
      <description>&lt;P&gt;Hi! I'm having an issue with proc mianalyze process using macro. I imputed data using proc mi process before running the following code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro desc(b,a);
proc surveyfreq data=&amp;amp;b; where excl=0;
  tables &amp;amp;a;
  by _imputation_;
  ods output Oneway=freq;

proc mianalyze data=freq;
  by &amp;amp;a;
  modeleffects percent;
  stderr stderr;
  run;

%mend desc; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I put a dataset name as b and variable names as a. But I still don't understand why I'm getting this error message.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR: At least two imputations are required for PROC MIANALYZE.
NOTE: The above message was for the following BY group: (description for groups)&lt;/PRE&gt;&lt;P&gt;Of course, I googled it but I found no one asking this error message. Is it because proc mi process didn't work properly? Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 15:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-two-imputations-are-required-for-PROC-MIANALYZE/m-p/740513#M231334</guid>
      <dc:creator>Mion</dc:creator>
      <dc:date>2021-05-11T15:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: At least two imputations are required for PROC MIANALYZE.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-two-imputations-are-required-for-PROC-MIANALYZE/m-p/740527#M231342</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;There is nothing wrong with your macro as far as I can assess.&lt;/P&gt;
&lt;P&gt;I have no experience with PROC MIANALYZE but, to my understanding,&lt;/P&gt;
&lt;P&gt;you have only 1 imputation for each by-group (or for some of the by-groups) and you need at least two to run a successful PROC MIANALYZE.&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 15:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-two-imputations-are-required-for-PROC-MIANALYZE/m-p/740527#M231342</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-05-11T15:52:48Z</dc:date>
    </item>
  </channel>
</rss>

