<?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 Imputation of categorical variables towards the MODE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Imputation-of-categorical-variables-towards-the-MODE/m-p/961351#M374788</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to perform imputation of missing values with the MODE in a few categorical variables, but have not been successful yet. I'd greatly appreciate some insight.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 09 Mar 2025 17:37:42 GMT</pubDate>
    <dc:creator>lgutm18</dc:creator>
    <dc:date>2025-03-09T17:37:42Z</dc:date>
    <item>
      <title>Imputation of categorical variables towards the MODE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Imputation-of-categorical-variables-towards-the-MODE/m-p/961351#M374788</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to perform imputation of missing values with the MODE in a few categorical variables, but have not been successful yet. I'd greatly appreciate some insight.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Mar 2025 17:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Imputation-of-categorical-variables-towards-the-MODE/m-p/961351#M374788</guid>
      <dc:creator>lgutm18</dc:creator>
      <dc:date>2025-03-09T17:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Imputation of categorical variables towards the MODE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Imputation-of-categorical-variables-towards-the-MODE/m-p/961373#M374795</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.heart(keep=smoking_Status);
run;



proc freq data=have order=freq;
table smoking_Status /out=mode;
run;
data mode2(rename=(smoking_Status=_smoking_Status));
 set mode(keep=smoking_Status where=(smoking_Status is not missing) obs=1);
run;
data want;
 set have;
 if _n_=1 then set mode2;
 if missing(smoking_Status) then smoking_Status=_smoking_Status;
 drop _smoking_Status;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Mar 2025 02:11:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Imputation-of-categorical-variables-towards-the-MODE/m-p/961373#M374795</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-03-10T02:11:03Z</dc:date>
    </item>
  </channel>
</rss>

