<?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: Problem with multiple imputation code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-multiple-imputation-code/m-p/779995#M248483</link>
    <description>&lt;P&gt;According to the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_genmod_details143.htm" target="_self"&gt;PROC GENMOD documentation&lt;/A&gt;, you need the PRINTMLE option to obtain the parameter estimates when you use a REPEATED statement.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Nov 2021 15:36:37 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-11-12T15:36:37Z</dc:date>
    <item>
      <title>Problem with multiple imputation code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-multiple-imputation-code/m-p/779992#M248480</link>
      <description>&lt;P class=""&gt;Dear all, I have written code to conduct multiple imputation per guidance here:&amp;nbsp;&lt;A href="https://stats.idre.ucla.edu/sas/seminars/multiple-imputation-in-sas/mi_new_1/" target="_blank" rel="noopener"&gt;https://stats.idre.ucla.edu/sas/seminars/multiple-imputation-in-sas/mi_new_1/&lt;/A&gt;.&amp;nbsp; I cannot complete the final, 3rd stage of the imputation process--i.e. pooling of estimates from imputations-- because in stage 2 I cannot successfully output the estimates to be pooled. The problematic code and resulting errors messages are in red/bold below. Please help-- thank you!!&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;/*1. imputation phase*/&lt;/P&gt;&lt;P class=""&gt;proc mi data=siya nimpute=20 out=mi_fcs;&lt;/P&gt;&lt;P class=""&gt;class share give receive agyw drugs depression&lt;/P&gt;&lt;P class=""&gt;ss worksite mobility&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;pimp homeless money unsafe&lt;/P&gt;&lt;P class=""&gt;disclose vs ed civil alcohol violrec viol;&lt;/P&gt;&lt;P class=""&gt;fcs plots=trace(mean std);&lt;/P&gt;&lt;P class=""&gt;var share give receive agyw drugs depression&lt;/P&gt;&lt;P class=""&gt;ss worksite mobility&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;pimp homeless money unsafe&lt;/P&gt;&lt;P class=""&gt;disclose&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;estigmasw estigmahiv astigmasw&lt;/P&gt;&lt;P class=""&gt;astigmahiv&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;pills303 pillsreceive303&lt;/P&gt;&lt;P class=""&gt;pillsgive303 vs ed civil alcohol violrec viol ;&lt;/P&gt;&lt;P class=""&gt;fcs discrim(share give receive agyw drugs depression&lt;/P&gt;&lt;P class=""&gt;ss worksite mobility&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;pimp homeless money unsafe&lt;/P&gt;&lt;P class=""&gt;disclose vs ed civil alcohol violrec viol / classeffects=include) nbiter=100;&lt;/P&gt;&lt;P class=""&gt;run;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;/*2. analysis */&lt;/P&gt;&lt;P class=""&gt;/*model 1*/&lt;/P&gt;&lt;P class=""&gt;proc genmod data=mi_fcs;&lt;/P&gt;&lt;P class=""&gt;class pid civil (ref="0") depression (ref="0")&lt;/P&gt;&lt;P class=""&gt;alcohol (ref="0") ed (ref="0") mobility (ref="0") unsafe (ref="0") money (ref="0") worksite (ref="0") /param=ref;&lt;/P&gt;&lt;P class=""&gt;model vs=&lt;/P&gt;&lt;P class=""&gt;pills303&lt;/P&gt;&lt;P class=""&gt;agyw&lt;/P&gt;&lt;P class=""&gt;ed&lt;/P&gt;&lt;P class=""&gt;civil&lt;/P&gt;&lt;P class=""&gt;alcohol&lt;/P&gt;&lt;P class=""&gt;drugs&lt;/P&gt;&lt;P class=""&gt;depression&lt;/P&gt;&lt;P class=""&gt;mobility&lt;/P&gt;&lt;P class=""&gt;worksite&lt;/P&gt;&lt;P class=""&gt;pimp&lt;/P&gt;&lt;P class=""&gt;violrec&lt;/P&gt;&lt;P class=""&gt;homeless&lt;/P&gt;&lt;P class=""&gt;money&lt;/P&gt;&lt;P class=""&gt;unsafe&lt;/P&gt;&lt;P class=""&gt;estigmasw&lt;/P&gt;&lt;P class=""&gt;estigmahiv&lt;/P&gt;&lt;P class=""&gt;astigmasw&lt;/P&gt;&lt;P class=""&gt;astigmahiv disclose/Dist=poisson Link=log;&lt;/P&gt;&lt;P class=""&gt;Repeated subject = pid / type=Ind;&lt;/P&gt;&lt;P class=""&gt;estimate 'pills303' pills303 1;&lt;/P&gt;&lt;P class=""&gt;by _imputation_;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;ods output ParameterEstimates=gm_fcs;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;title 'VS on pills given and/or received with MI';&lt;/P&gt;&lt;P class=""&gt;run;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Above receives message: "WARNING: Output 'ParameterEstimates' was not created.&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Make sure that the output object name, label, or path is spelled correctly.&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Also, verify that the appropriate procedure options are used&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;to produce the requested output object.&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;For example, verify that the NOPRINT option is not&lt;/FONT&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt; used."&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Therefore I cannot complete following, phase 3, because&amp;nbsp;GM_FCS does not exist.&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;/*3. pooling phase*/&lt;/P&gt;&lt;P class=""&gt;TITLE " MULTIPLE IMPUTATION Linear REGRESSION - FCS";&lt;/P&gt;&lt;P class=""&gt;PROC MIANALYZE parms(classvar=level)=&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;gm_fcs&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P class=""&gt;class share give receive agyw drugs depression&lt;/P&gt;&lt;P class=""&gt;ss worksite mobility&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;pimp homeless money unsafe&lt;/P&gt;&lt;P class=""&gt;disclose vs ed civil alcohol violrec viol;&lt;/P&gt;&lt;P class=""&gt;MODELEFFECTS INTERCEPT share give receive agyw drugs depression&lt;/P&gt;&lt;P class=""&gt;ss worksite mobility&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;pimp homeless money unsafe&lt;/P&gt;&lt;P class=""&gt;disclose&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;estigmasw estigmahiv astigmasw&lt;/P&gt;&lt;P class=""&gt;astigmahiv&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;pills303 pillsreceive303&lt;/P&gt;&lt;P class=""&gt;pillsgive303 vs ed civil alcohol violrec viol;/*all variables from all models*/&lt;/P&gt;&lt;P class=""&gt;RUN;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 15:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-multiple-imputation-code/m-p/779992#M248480</guid>
      <dc:creator>amcr729</dc:creator>
      <dc:date>2021-11-12T15:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple imputation code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-multiple-imputation-code/m-p/779995#M248483</link>
      <description>&lt;P&gt;According to the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_genmod_details143.htm" target="_self"&gt;PROC GENMOD documentation&lt;/A&gt;, you need the PRINTMLE option to obtain the parameter estimates when you use a REPEATED statement.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 15:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-multiple-imputation-code/m-p/779995#M248483</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-12T15:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple imputation code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-multiple-imputation-code/m-p/780300#M248620</link>
      <description>&lt;P&gt;thank you so much. That enabled me to complete stage 2 of multiple imputation, but now I cannot get through the third and final pooling stage because when I run the code (see "&lt;SPAN&gt;/*3. pooling phase*/" in original post),&amp;nbsp;&lt;/SPAN&gt;SAS gets hung up running and never competes the procedure. Any ideas of how to fix this? Thanks! There are just 890 observations in the dataset.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 20:47:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-multiple-imputation-code/m-p/780300#M248620</guid>
      <dc:creator>amcr729</dc:creator>
      <dc:date>2021-11-15T20:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple imputation code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-multiple-imputation-code/m-p/890569#M351916</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi team, I've used the below code for multiple imputation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After doing imputation, I'm running multinomial logistic regression then running proc analyse. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc mi data=data.newdata seed=876 nimpute=5 out=outfcs; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;class group sex hispan; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;fcs nbiter=40 logistic (group/details); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var group sysbp01 diabp01 a1c_01 chol_01 bmi_01 sex hispan;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc logistic data = outfcs; class group (ref = "3") sex (ref = "0") hispan (ref= "1") / param = ref; model group = sysbp01 diabp01 a1c_01 chol_01 bmi_01 age01 sex hispan / link = glogit covb; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;by _Imputation_; ods output ParameterEstimates=lgsparms CovB=lgscovb; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc mianalyze parms (classvar=classval)=lgsparms; class sex hispan; modeleffects intercept sysbp01 diabp01 a1c_01 chol_01 bmi_01 age01 sex hispan ; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And getting only pooled/combined estimates. But I need relative estimates. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 14:15:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-multiple-imputation-code/m-p/890569#M351916</guid>
      <dc:creator>Saba_Zaki</dc:creator>
      <dc:date>2023-08-23T14:15:49Z</dc:date>
    </item>
  </channel>
</rss>

