<?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 MIANALYZE after PROC SURVEYIMPUTE? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MIANALYZE-after-PROC-SURVEYIMPUTE/m-p/888209#M82877</link>
    <description>&lt;P&gt;Here is the code I used to generate the imputed dataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc surveyimpute data=zinc.otms method=hotdeck (selection=weighted) seed=123 ndonors=5;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cluster psu_no_ov;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;strata newstrata;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;weight nat_weight_bio;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cells sex area;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;class cat_smoke sanitation handwashing drinkingwatersource caste alcohol_y_n edu_pat edu_mat;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;var cat_smoke sanitation handwashing drinkingwatersource caste alcohol_y_n edu_pat edu_mat N_Mets1 N_Mets2 N_Mets3 N_Mets4 N_Mets5 N_Mets6 N_Mets7 crprt diet p_activity zns_unic sys1 sys2 sys3 dias1 dias2 dias3;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;output out=zinc.imputed donorid=donor;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;data zinc.imputed;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;set zinc.imputed;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if (ImpIndex = 0) then do; /* Include complete respondents */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;do _Imputation_=1 to 5; /* in all imputations. */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;output;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;else do; /* Put incomplete respondents */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;_Imputation_ = ImpIndex; /* in separate imputations. */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;output;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;proc sort data=zinc.imputed;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;by _Imputation_ UnitID;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;then I ran the following regression using the default varmethod=TSL:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc surveyreg&lt;/STRONG&gt; data=zinc.imputed;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;by&lt;/STRONG&gt; _imputation;&lt;BR /&gt;&lt;STRONG&gt;cluster&lt;/STRONG&gt; psu_no_ov;&lt;BR /&gt;&lt;STRONG&gt;strata&lt;/STRONG&gt; newstrata;&lt;BR /&gt;&lt;STRONG&gt;weight&lt;/STRONG&gt; imp_wt;&lt;BR /&gt;&lt;STRONG&gt;class&lt;/STRONG&gt; cat_zinc;&lt;BR /&gt;&lt;STRONG&gt;model&lt;/STRONG&gt; N_Mets8 = cat_zinc / solution noint;&lt;BR /&gt;&lt;STRONG&gt;contrast&lt;/STRONG&gt; 'contrasting example' cat_zinc -3 -1 1 3;&lt;BR /&gt;&lt;STRONG&gt;estimate&lt;/STRONG&gt; 'overall mean' cat_zinc 0.25 0.25 0.25 0.25;&lt;BR /&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, should I combine the results using PROC miANALYZE? OR Should I remove the by _imputation_ statement from the Proc surveyeg step and report the results without using procmianalyze?&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2023 19:05:40 GMT</pubDate>
    <dc:creator>Saifulinfs</dc:creator>
    <dc:date>2023-08-07T19:05:40Z</dc:date>
    <item>
      <title>PROC MIANALYZE after PROC SURVEYIMPUTE?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MIANALYZE-after-PROC-SURVEYIMPUTE/m-p/888209#M82877</link>
      <description>&lt;P&gt;Here is the code I used to generate the imputed dataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc surveyimpute data=zinc.otms method=hotdeck (selection=weighted) seed=123 ndonors=5;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cluster psu_no_ov;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;strata newstrata;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;weight nat_weight_bio;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cells sex area;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;class cat_smoke sanitation handwashing drinkingwatersource caste alcohol_y_n edu_pat edu_mat;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;var cat_smoke sanitation handwashing drinkingwatersource caste alcohol_y_n edu_pat edu_mat N_Mets1 N_Mets2 N_Mets3 N_Mets4 N_Mets5 N_Mets6 N_Mets7 crprt diet p_activity zns_unic sys1 sys2 sys3 dias1 dias2 dias3;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;output out=zinc.imputed donorid=donor;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;data zinc.imputed;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;set zinc.imputed;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if (ImpIndex = 0) then do; /* Include complete respondents */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;do _Imputation_=1 to 5; /* in all imputations. */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;output;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;else do; /* Put incomplete respondents */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;_Imputation_ = ImpIndex; /* in separate imputations. */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;output;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;proc sort data=zinc.imputed;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;by _Imputation_ UnitID;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;then I ran the following regression using the default varmethod=TSL:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc surveyreg&lt;/STRONG&gt; data=zinc.imputed;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;by&lt;/STRONG&gt; _imputation;&lt;BR /&gt;&lt;STRONG&gt;cluster&lt;/STRONG&gt; psu_no_ov;&lt;BR /&gt;&lt;STRONG&gt;strata&lt;/STRONG&gt; newstrata;&lt;BR /&gt;&lt;STRONG&gt;weight&lt;/STRONG&gt; imp_wt;&lt;BR /&gt;&lt;STRONG&gt;class&lt;/STRONG&gt; cat_zinc;&lt;BR /&gt;&lt;STRONG&gt;model&lt;/STRONG&gt; N_Mets8 = cat_zinc / solution noint;&lt;BR /&gt;&lt;STRONG&gt;contrast&lt;/STRONG&gt; 'contrasting example' cat_zinc -3 -1 1 3;&lt;BR /&gt;&lt;STRONG&gt;estimate&lt;/STRONG&gt; 'overall mean' cat_zinc 0.25 0.25 0.25 0.25;&lt;BR /&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, should I combine the results using PROC miANALYZE? OR Should I remove the by _imputation_ statement from the Proc surveyeg step and report the results without using procmianalyze?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 19:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MIANALYZE-after-PROC-SURVEYIMPUTE/m-p/888209#M82877</guid>
      <dc:creator>Saifulinfs</dc:creator>
      <dc:date>2023-08-07T19:05:40Z</dc:date>
    </item>
  </channel>
</rss>

