<?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 parms error in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-mianalyze-parms-error/m-p/417582#M67692</link>
    <description>&lt;P&gt;Certainly this is wrong.&amp;nbsp; Remove the first QUIT statement and both RUN statements. (Yes, some other variations are OK too.)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=transformedMI;
class year;
model logddq_fri logddq_sat = year;
run;
quit;
ods output parameterestimates=ParmEst;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Documentation examples show creating a PARMEST data set using a BY variable _Imputation_.&amp;nbsp; You need such a BY variable.&amp;nbsp; There might or might not be other things wrong, but that is what jumped out at me.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2017 21:39:48 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2017-11-30T21:39:48Z</dc:date>
    <item>
      <title>Proc mianalyze parms error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-mianalyze-parms-error/m-p/417558#M67691</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS university edition/studio. I'm trying to run multiple imputations on a dataset and cannot get past the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'ERROR: Variable _Imputation_ is not in the PARMS= data set.'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mi data=transformed nimpute=20 out=TransformedMI;&lt;BR /&gt;var year logddq_fri logddq_sat od_ecig02 od_ecstasy13 od_halluc09 od_oth14;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc glm data=transformedMI;&lt;BR /&gt;class year;&lt;BR /&gt;model logddq_fri logddq_sat = year;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;ods output parameterestimates=ParmEst;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mianalyze parms=ParmEst;&lt;BR /&gt;modeleffects logddq_fri logddq_sat year;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I look at the contents of ParmEst, there certainly is no _imputation_ variable in it. I've tried many variations of the code, and consulted many websites/tutorials, but just can't seem to find alterations that resolve this error. Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 20:45:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-mianalyze-parms-error/m-p/417558#M67691</guid>
      <dc:creator>gjenkins3</dc:creator>
      <dc:date>2017-11-30T20:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc mianalyze parms error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-mianalyze-parms-error/m-p/417582#M67692</link>
      <description>&lt;P&gt;Certainly this is wrong.&amp;nbsp; Remove the first QUIT statement and both RUN statements. (Yes, some other variations are OK too.)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=transformedMI;
class year;
model logddq_fri logddq_sat = year;
run;
quit;
ods output parameterestimates=ParmEst;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Documentation examples show creating a PARMEST data set using a BY variable _Imputation_.&amp;nbsp; You need such a BY variable.&amp;nbsp; There might or might not be other things wrong, but that is what jumped out at me.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 21:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-mianalyze-parms-error/m-p/417582#M67692</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-11-30T21:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc mianalyze parms error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-mianalyze-parms-error/m-p/417586#M67693</link>
      <description>&lt;P&gt;I appreciate your response. Unfortunately, the multiple 'run' and 'quit' commands are the only way I've been able to create the ods output parameter estimates. If I remove them, it gives me an entirely separate error saying that the output wasn't created. I've also included a BY _imputation_ statement, as seen below, but it still returns&amp;nbsp;&lt;SPAN&gt;ERROR: Variable _Imputation_ is not in the PARMS= data set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data=transformedMI;&lt;BR /&gt;class year;&lt;BR /&gt;model logddq_fri logddq_sat = year;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;by _imputation_;&lt;/FONT&gt;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;ods output parameterestimates=ParmEst;&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc mianalyze parms=ParmEst;&lt;BR /&gt;modeleffects logddq_fri logddq_sat year;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 21:51:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-mianalyze-parms-error/m-p/417586#M67693</guid>
      <dc:creator>gjenkins3</dc:creator>
      <dc:date>2017-11-30T21:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc mianalyze parms error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-mianalyze-parms-error/m-p/417589#M67694</link>
      <description>&lt;P&gt;I can assure you that you cannot make the ODS output data set after you leave the procedure.&amp;nbsp; Compare my method and yours with a small example.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=sashelp.class;
   class sex;
   model weight = sex height / solution;
   ods output parameterestimates=p;
quit;
   
proc contents varnum data=p; ods select position; run;

proc glm data=sashelp.class;
   class sex;
   model weight = sex height / solution;
run;
quit;
   ods output parameterestimates=p2;
run;
quit;
   
proc contents varnum data=p2; ods select position; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You need the SOLUTION option to get the parameter estimates.&amp;nbsp; You can't just add a BY statement.&amp;nbsp; The BY variable must the in the input data set.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 21:57:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-mianalyze-parms-error/m-p/417589#M67694</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-11-30T21:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc mianalyze parms error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-mianalyze-parms-error/m-p/417626#M67695</link>
      <description>&lt;P&gt;I appreciate your continuing help. When I make your suggested changes, it does include the variable _Imputation_ in the parameter estimate ods output. However, when I then attempt to run Mianalyze, it provides me with the same error, but for a different&amp;nbsp;variable in my model. It now says:&amp;nbsp;&lt;SPAN&gt; ERROR: The model effect logddq_fri is not in the PARMS= data set. Proc contents reveals that neither variable logddq_fri, logddq_sat, nor year are in the parameter estimate output file.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you have any suggestions as to how to include all the variables in my model statement in the output, so that I can get mianalyze to run?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Garrett&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 466px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16946i2F2500D70891A17B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 00:05:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-mianalyze-parms-error/m-p/417626#M67695</guid>
      <dc:creator>gjenkins3</dc:creator>
      <dc:date>2017-12-01T00:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc mianalyze parms error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-mianalyze-parms-error/m-p/417627#M67696</link>
      <description>&lt;P&gt;Do you really intend to have two dependent variables?&amp;nbsp; Look at the documentation examples.&amp;nbsp; They list independent variables not dependent variables on the modeleffects statement.&amp;nbsp; I am not knowledgeable about this proc.&amp;nbsp; I was just trying to point out the problems that jumped out at me.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 00:12:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-mianalyze-parms-error/m-p/417627#M67696</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-12-01T00:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc mianalyze parms error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-mianalyze-parms-error/m-p/574671#M75404</link>
      <description>&lt;P&gt;Had the same problem where the imputed data indicator on my dataset had another variable name. All I had to was to change that variable name to '_Imputation_' and run Proc mianalyze again. That fixes it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 16:40:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-mianalyze-parms-error/m-p/574671#M75404</guid>
      <dc:creator>guaguncher</dc:creator>
      <dc:date>2019-07-18T16:40:55Z</dc:date>
    </item>
  </channel>
</rss>

