<?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: imputing categorical variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/imputing-categorical-variables/m-p/747754#M234757</link>
    <description>If I was right PROC STDIZE can't handle category variable.&lt;BR /&gt;or maybe &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; know more .</description>
    <pubDate>Mon, 14 Jun 2021 11:18:44 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-06-14T11:18:44Z</dc:date>
    <item>
      <title>imputing categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/imputing-categorical-variables/m-p/747726#M234742</link>
      <description>&lt;P&gt;Hi, i need help in imputing categoriacla variables.. i tried below code but im not sure which value to use on the 'method' option...i have a variable called 'marital status' consistin of values 'single, married,widowed'...i need to do something like mode imputation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc stdize data=data out=Imputed
oprefix=Orig_ /* prefix for original variables */
reponly /* only replace; do not standardize */
method=; /*ABW, AGK, AHUBER, AWAVE, EUCLEN, IN,IQR, LEAST, MAD, MAXABS, MEAN, MEDIAN, MIDRANGE, RANGE, SPACING, STD, SUM, UST*/
var Marital_status;&amp;nbsp;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Jun 2021 09:53:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/imputing-categorical-variables/m-p/747726#M234742</guid>
      <dc:creator>Solly7</dc:creator>
      <dc:date>2021-06-14T09:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: imputing categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/imputing-categorical-variables/m-p/747748#M234752</link>
      <description>&lt;P&gt;From the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_stdize_syntax06.htm" target="_self"&gt;PROC STDIZE documentation&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;BLOCKQUOTE&gt;
&lt;H3 class="xis-title"&gt;VAR Statement&lt;/H3&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="statug_stdize000701" class="aa-statementblock"&gt;
&lt;UL class="aa-statementblock"&gt;
&lt;LI&gt;
&lt;P&gt;&lt;SPAN class="aa-statement"&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="aa-statementoptional"&gt;variable&lt;/SPAN&gt;;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The VAR statement lists &lt;FONT color="#FF0000"&gt;numeric&lt;/FONT&gt; variables to be standardized. If you omit the VAR statement, all &lt;FONT color="#FF0000"&gt;numeric&lt;/FONT&gt; variables not listed in the BY, FREQ, and WEIGHT statements are used.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So PROC STDIZE cannot be used on character variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To determine the mode of a class variable, you can do this in PROC FREQ and then once you have found the mode, replace missings in your data set with the calculated mode.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 11:09:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/imputing-categorical-variables/m-p/747748#M234752</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-14T11:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: imputing categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/imputing-categorical-variables/m-p/747754#M234757</link>
      <description>If I was right PROC STDIZE can't handle category variable.&lt;BR /&gt;or maybe &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; know more .</description>
      <pubDate>Mon, 14 Jun 2021 11:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/imputing-categorical-variables/m-p/747754#M234757</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-06-14T11:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: imputing categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/imputing-categorical-variables/m-p/747759#M234760</link>
      <description>&lt;P&gt;I fully agree, i tried below code...i initially had 24000 rows before applying below code..but thereafter executing the below code my data multiplied to 505000 rows..kindly assist&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc mi data=final_data seed=1305417 out=outex7;
   class Existing_cover Marital_status Lead_type;
   fcs discrim(Existing_cover Marital_status Lead_type/details) reg(height_new/details);
   var Existing_cover Marital_status Lead_type height_new;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Jun 2021 11:58:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/imputing-categorical-variables/m-p/747759#M234760</guid>
      <dc:creator>Solly7</dc:creator>
      <dc:date>2021-06-14T11:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: imputing categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/imputing-categorical-variables/m-p/747780#M234769</link>
      <description>&lt;P&gt;You need to decide what kind of imputation you want. Originally, you asked about PROC STDIZE, which performs single imputation: missing values of numerical variables are replaced by a value or by a statistic such as the mean or median. But now you are talking about PROC MI, which performs multip[le imputation.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi30/113-30.pdf" target="_self"&gt;A paper by Paul Allison&lt;/A&gt;&amp;nbsp;discusses the various imputation methods for various assumptions of missingness.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 12:59:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/imputing-categorical-variables/m-p/747780#M234769</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-06-14T12:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: imputing categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/imputing-categorical-variables/m-p/747781#M234770</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;Imputing character variables has been discussed in this forum topic. Suggest have a look there&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Imputing-missing-values-of-character-variables-in-a-large-data/td-p/465481" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Imputing-missing-values-of-character-variables-in-a-large-data/td-p/465481&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 13:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/imputing-categorical-variables/m-p/747781#M234770</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-06-14T13:01:56Z</dc:date>
    </item>
  </channel>
</rss>

