<?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 Multiple Imputation in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Multiple-Imputation/m-p/540645#M7241</link>
    <description>&lt;P&gt;I am pretty new to multiple imputations and I truly don't know how to troubleshoot the code. This is what I have so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MI data= have&lt;BR /&gt;out = impute10&amp;nbsp;&lt;BR /&gt;nimpute =10&amp;nbsp;&lt;BR /&gt;seed =8842&amp;nbsp;&lt;BR /&gt;round=1&amp;nbsp;&lt;BR /&gt;simple&lt;BR /&gt;minimum= 0 0 0&lt;BR /&gt;maximum= 1 1 1;&lt;BR /&gt;var catvar1 catvar2&amp;nbsp; catvar3;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic descending data = impute10 out =logistimp10;&lt;BR /&gt;class catvar1(ref = "1") catvar2(ref = "1") catvar3(ref = "0") catvar4(ref = "1") catvar5(ref = "1") catvar16(ref = "1")/ param = ref;&lt;BR /&gt;model result= var1 num var2 catvar4 catvar5 catvar6&lt;BR /&gt;bmi catvar1 catvar2 age catvar3/covb;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ods output ParameterEstimates=lgsparms CovB=lgscovb;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mianalyze parms=lgsparms covb(effectvar=stacking)=lgscovb;&lt;BR /&gt;class catvar1 catvar2 catvar3 catvar4 catvar5 catvar6;&lt;BR /&gt;modeleffects var1 num var2 catvar4 catvar5 catvar6&lt;BR /&gt;bmi catvar1 catvar2 age catvar3;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is with proc mianalyze. I don't know how to handle categorical variables here besides having a class statement. I tried adding parms(classvar=level)=lgsparms but I get an error saying that level1 is not in the parms= dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should I recode this to properly include categorical variables?&lt;/P&gt;&lt;P&gt;I eventually also want to stratify by a categorical variable, will that be an issue?&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2019 04:10:32 GMT</pubDate>
    <dc:creator>dikshar</dc:creator>
    <dc:date>2019-03-06T04:10:32Z</dc:date>
    <item>
      <title>Multiple Imputation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Multiple-Imputation/m-p/540645#M7241</link>
      <description>&lt;P&gt;I am pretty new to multiple imputations and I truly don't know how to troubleshoot the code. This is what I have so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MI data= have&lt;BR /&gt;out = impute10&amp;nbsp;&lt;BR /&gt;nimpute =10&amp;nbsp;&lt;BR /&gt;seed =8842&amp;nbsp;&lt;BR /&gt;round=1&amp;nbsp;&lt;BR /&gt;simple&lt;BR /&gt;minimum= 0 0 0&lt;BR /&gt;maximum= 1 1 1;&lt;BR /&gt;var catvar1 catvar2&amp;nbsp; catvar3;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic descending data = impute10 out =logistimp10;&lt;BR /&gt;class catvar1(ref = "1") catvar2(ref = "1") catvar3(ref = "0") catvar4(ref = "1") catvar5(ref = "1") catvar16(ref = "1")/ param = ref;&lt;BR /&gt;model result= var1 num var2 catvar4 catvar5 catvar6&lt;BR /&gt;bmi catvar1 catvar2 age catvar3/covb;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ods output ParameterEstimates=lgsparms CovB=lgscovb;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mianalyze parms=lgsparms covb(effectvar=stacking)=lgscovb;&lt;BR /&gt;class catvar1 catvar2 catvar3 catvar4 catvar5 catvar6;&lt;BR /&gt;modeleffects var1 num var2 catvar4 catvar5 catvar6&lt;BR /&gt;bmi catvar1 catvar2 age catvar3;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is with proc mianalyze. I don't know how to handle categorical variables here besides having a class statement. I tried adding parms(classvar=level)=lgsparms but I get an error saying that level1 is not in the parms= dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should I recode this to properly include categorical variables?&lt;/P&gt;&lt;P&gt;I eventually also want to stratify by a categorical variable, will that be an issue?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 04:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Multiple-Imputation/m-p/540645#M7241</guid>
      <dc:creator>dikshar</dc:creator>
      <dc:date>2019-03-06T04:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Imputation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Multiple-Imputation/m-p/540658#M7246</link>
      <description>&lt;P&gt;You might find this page useful:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.idre.ucla.edu/sas/seminars/multiple-imputation-in-sas/mi_new_1/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/seminars/multiple-imputation-in-sas/mi_new_1/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 06:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Multiple-Imputation/m-p/540658#M7246</guid>
      <dc:creator>Norman21</dc:creator>
      <dc:date>2019-03-06T06:31:08Z</dc:date>
    </item>
  </channel>
</rss>

