<?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: Proc MI var statement with categorical variables in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-MI-var-statement-with-categorical-variables/m-p/921090#M45763</link>
    <description>&lt;P&gt;If you are going to use the MCMC statement then you will need to create dummy variables for the categorical variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless you have a specific reason for doing so, you could avoid having to impute in two steps by simply using the FCS statement.&amp;nbsp; This would enable you to use the CLASS statement and avoid having to dummy code.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2024 11:47:26 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2024-03-20T11:47:26Z</dc:date>
    <item>
      <title>Proc MI var statement with categorical variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-MI-var-statement-with-categorical-variables/m-p/921088#M45762</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to use proc mi to impute missing data and i have following question:&lt;/P&gt;&lt;P&gt;In the code below i have in the var statement 2 categorical variables with no missing values and continuous variables that have missing data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mi data=data1 seed=38467 nimpute=50 out=data_mcmc;&lt;/P&gt;&lt;P&gt;&amp;nbsp; mcmc impute=monotone chain=multiple;&lt;/P&gt;&lt;P&gt;var treatment gender calcium_v1 calcium_v2 calcium_v3...calcium_v20;&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case do i have to include 'by' statement with these 2 categorical variables OR create a dummy variable (0,1) for each category OR no updates are needed in this case?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 11:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-MI-var-statement-with-categorical-variables/m-p/921088#M45762</guid>
      <dc:creator>VioletaB</dc:creator>
      <dc:date>2024-03-20T11:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc MI var statement with categorical variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-MI-var-statement-with-categorical-variables/m-p/921090#M45763</link>
      <description>&lt;P&gt;If you are going to use the MCMC statement then you will need to create dummy variables for the categorical variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless you have a specific reason for doing so, you could avoid having to impute in two steps by simply using the FCS statement.&amp;nbsp; This would enable you to use the CLASS statement and avoid having to dummy code.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 11:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-MI-var-statement-with-categorical-variables/m-p/921090#M45763</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2024-03-20T11:47:26Z</dc:date>
    </item>
  </channel>
</rss>

