<?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 with PROC MIANALYZE (Multiple Imputation Analysis Error Message) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Error-with-PROC-MIANALYZE-Multiple-Imputation-Analysis-Error/m-p/939771#M46904</link>
    <description>&lt;P&gt;Check the output dataset from the SURVEYLOGISTIC procedure to see if it contains a column of standard errors. If not, add the COVB option in the MODEL statement after the slash.&lt;/P&gt;
&lt;P&gt;Like this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/467018"&gt;@ronaldo7&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;*Other commands omitted*;
	model HeartDisease(event='1') = SexualOrientation AGEP_A Sex RaceEthnicity Education IncomePovertyRatio BMICategory HealthInsurance
		URBRRL REGION/covb;
	by _imputation_;
	ods output ParameterEstimates=a_mvn;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Sun, 18 Aug 2024 04:32:46 GMT</pubDate>
    <dc:creator>Season</dc:creator>
    <dc:date>2024-08-18T04:32:46Z</dc:date>
    <item>
      <title>Error with PROC MIANALYZE (Multiple Imputation Analysis Error Message)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-with-PROC-MIANALYZE-Multiple-Imputation-Analysis-Error/m-p/939765#M46899</link>
      <description>&lt;P&gt;The error message I receive when I use PROC MIANALYZE reads:&lt;/P&gt;&lt;PRE class=""&gt;ERROR: Within-imputation StdErr missing for variable  in _Imputation_= 1 in the input PARMS= data set.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using data from one of the National Health Interview Surveys. I have the full dataset already loaded. Here is my code working through the multiple imputation, proc surveylogistic, and then proc mianalyze:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;*Imputation phase*;
proc mi data=nhis nimpute=5 out=mi_fcs ;
class HeartDisease SexualOrientation Sex RaceEthnicity Education IncomePovertyRatio BMICategory HealthInsurance URBRRL REGION;
fcs plots=trace(mean std); 
var HeartDisease AGEP_A SexualOrientation Sex RaceEthnicity Education IncomePovertyRatio BMICategory HealthInsurance URBRRL REGION;
fcs discrim(HeartDisease SexualOrientation Sex RaceEthnicity Education IncomePovertyRatio BMICategory HealthInsurance URBRRL REGION /classeffects=include) nbiter =10 ; 
run;


*Analysis phase*;
proc surveylogistic data = mi_fcs ;
	strata pstrat;
	cluster ppsu;
	weight WTFA_A;
	class SexualOrientation(ref='2') Sex RaceEthnicity(ref="2") Education IncomePovertyRatio BMICategory(ref="2") 
		HealthInsurance URBRRL REGION / param=glm;
	model HeartDisease(event='1') = SexualOrientation AGEP_A Sex RaceEthnicity Education IncomePovertyRatio BMICategory HealthInsurance
		URBRRL REGION;
	by _imputation_;
	ods output ParameterEstimates=a_mvn;
run;
quit;



*Compress data to avoid issues*;
data a_mvn;
set a_mvn;
parameter=compress(parameter);
run;


*Pooling phase*;
proc mianalyze parms=a_mvn;
MODELEFFECTS INTERCEPT AGEP_A SexualOrientation Sex RaceEthnicity Education IncomePovertyRatio BMICategory 
		HealthInsurance URBRRL REGION;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have no issues until running PROC MIANALYZE and then I receive the error message: "ERROR: Within-imputation StdErr missing for variable in _Imputation_= 1 in the input PARMS= data set."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I double checked and values for StdErr are present for all variable in _Imputation_=1 with the code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc print data = a_mvn;
where _imputation_ = 1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I would really appreciate your help with this!&amp;nbsp; I have been spending so long trying to complete multiple imputation for this analysis, and I have no clue how to move forward with this error. I tried searching for results online. Some people resolved this issue by shortening their variable names if they were &amp;gt;20 characters, but none of my variable names are &amp;gt;20 characters. Any help or advice would be greatly appreciated! Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2024 21:30:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-with-PROC-MIANALYZE-Multiple-Imputation-Analysis-Error/m-p/939765#M46899</guid>
      <dc:creator>ronaldo7</dc:creator>
      <dc:date>2024-08-17T21:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error with PROC MIANALYZE (Multiple Imputation Analysis Error Message)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-with-PROC-MIANALYZE-Multiple-Imputation-Analysis-Error/m-p/939771#M46904</link>
      <description>&lt;P&gt;Check the output dataset from the SURVEYLOGISTIC procedure to see if it contains a column of standard errors. If not, add the COVB option in the MODEL statement after the slash.&lt;/P&gt;
&lt;P&gt;Like this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/467018"&gt;@ronaldo7&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;*Other commands omitted*;
	model HeartDisease(event='1') = SexualOrientation AGEP_A Sex RaceEthnicity Education IncomePovertyRatio BMICategory HealthInsurance
		URBRRL REGION/covb;
	by _imputation_;
	ods output ParameterEstimates=a_mvn;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sun, 18 Aug 2024 04:32:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-with-PROC-MIANALYZE-Multiple-Imputation-Analysis-Error/m-p/939771#M46904</guid>
      <dc:creator>Season</dc:creator>
      <dc:date>2024-08-18T04:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error with PROC MIANALYZE (Multiple Imputation Analysis Error Message)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-with-PROC-MIANALYZE-Multiple-Imputation-Analysis-Error/m-p/939792#M46909</link>
      <description>&lt;P&gt;You should remove the data step in between SURVEYLOGISTIC and MIANALYZE as it is causing the issue because you are using PARAM=GLM which has a missing standard error.&amp;nbsp; This step is unnecessary if you use the CLASS statement in MIANALYZE along with the CLASSVAR=CLASSVAL sub-option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mianalyze parms(classvar=classval)=a_mvn;
class SexualOrientationSex RaceEthnicity Education IncomePovertyRatio BMICategory HealthInsurance URBRRL REGION;
MODELEFFECTS INTERCEPT AGEP_A SexualOrientation Sex RaceEthnicity Education IncomePovertyRatio BMICategory  HealthInsurance URBRRL REGION;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2024 22:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-with-PROC-MIANALYZE-Multiple-Imputation-Analysis-Error/m-p/939792#M46909</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2024-08-18T22:27:30Z</dc:date>
    </item>
  </channel>
</rss>

