<?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: mcmc in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/mcmc/m-p/317020#M270960</link>
    <description>&lt;P&gt;This appears to be a duplicate of&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/Multiple-imputation/m-p/316822" target="_blank"&gt;https://communities.sas.com/t5/SAS-Statistical-Procedures/Multiple-imputation/m-p/316822&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2016 14:04:19 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-12-06T14:04:19Z</dc:date>
    <item>
      <title>mcmc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mcmc/m-p/316823#M270959</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question regarding mcmc imputation. From what I understand, the 1st step should be the imputation phase with&amp;nbsp; &lt;SPAN class="fontstyle0"&gt;proc mi data=&lt;/SPAN&gt;&amp;nbsp;........&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then the 2nd should be the analysis phase: e.g proc glm.......&lt;/P&gt;&lt;P&gt;and the 3rd is the pooling phase with proc mianalyze ......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Question: I used mcmc in the 1st step and would like to include more than one variable in the 2nd step since I have more than one variable to impute:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that &amp;nbsp;only the last model statement is used: (&amp;nbsp;WARNING: Only the last MODEL statement is used.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I can only model one variable at a time, how can I combine those together in the end.??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mi data=cohort1 nimpute=20 out=cohort_MCMC_1&lt;BR /&gt;seed=2017&lt;BR /&gt;round= 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2&lt;BR /&gt;min= 14 1 0 0 0 0 0 0 0 0 0 0 30 1 0 0 0 0 0 0 0 0 0 0 0 1200 1200 1200 1200&lt;BR /&gt;max= 45 20 10 20 1 1 1 1 1 1 1 1 42 9 1 1 1 1 1 10 10 10 10 10 10 5500 5000 5000 5000 &amp;nbsp;;&lt;BR /&gt;mcmc impute=monotone ;&lt;BR /&gt;var x1 x2&amp;nbsp;x3&amp;nbsp;&amp;nbsp;x4 -------- x20&amp;nbsp;;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/**************************************************************************************/&lt;BR /&gt;proc glm /* or mixed &amp;nbsp;*/ data=&lt;SPAN&gt;cohort&lt;/SPAN&gt;&lt;SPAN&gt;_MCMC_1 &lt;/SPAN&gt;;&lt;BR /&gt;class x1 x2 x3 ------x10;&lt;BR /&gt;model x1=&amp;nbsp;x1------x5;&lt;BR /&gt;model x2= x2-----x7;&lt;BR /&gt;model x3= x6-------x15&amp;nbsp;;&lt;BR /&gt;model x4= x4------x20;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ods output ParameterEstimates=gm_mcmc;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 19:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mcmc/m-p/316823#M270959</guid>
      <dc:creator>seltonsy</dc:creator>
      <dc:date>2016-12-05T19:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: mcmc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mcmc/m-p/317020#M270960</link>
      <description>&lt;P&gt;This appears to be a duplicate of&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/Multiple-imputation/m-p/316822" target="_blank"&gt;https://communities.sas.com/t5/SAS-Statistical-Procedures/Multiple-imputation/m-p/316822&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 14:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mcmc/m-p/317020#M270960</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-12-06T14:04:19Z</dc:date>
    </item>
  </channel>
</rss>

