<?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: Missing value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Missing-value/m-p/433934#M107651</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am glad you have the solution. I am also&amp;nbsp; learning from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;'s&amp;nbsp;posts&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Feb 2018 03:25:28 GMT</pubDate>
    <dc:creator>stat_sas</dc:creator>
    <dc:date>2018-02-04T03:25:28Z</dc:date>
    <item>
      <title>Missing value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-value/m-p/433835#M107601</link>
      <description>&lt;P&gt;I am handling a cross-sectional data set.&lt;/P&gt;
&lt;P&gt;I identified that a number of my variable of interests were missing values, including continued, bi-variate and ordinal data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am wondering if I can replace the missing values by its mean or median.&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I want to know if there is a cap for allowing the replacing its value, e.g., missing values&amp;nbsp;must less than 10% or so.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone can help much appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Phan S.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 19:38:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-value/m-p/433835#M107601</guid>
      <dc:creator>PhanS</dc:creator>
      <dc:date>2018-02-03T19:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Missing value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-value/m-p/433836#M107602</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Missing values can be replaced with various statistics using proc stdize. Below is an example replacing missing values with median.&lt;/P&gt;
&lt;P&gt;Defining a cap would be based on your analysis. You can flag variables containing a certain percentage of missing values for imputation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc stdize data=have reponly method=median out=imputed;&lt;BR /&gt;var a b c; /* Assuming a, b and c are 3 numeric variables */&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 19:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-value/m-p/433836#M107602</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2018-02-03T19:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Missing value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-value/m-p/433853#M107605</link>
      <description>&lt;P&gt;Here's an inefficient macro that will cap the outliers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/31316a678433a1db8136" target="_blank"&gt;https://gist.github.com/statgeek/31316a678433a1db8136&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC STDIZE is a better option for replacing with median/mean. You can also look into PROC MI, multiple imputation to impute&amp;nbsp;missing data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 20:32:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-value/m-p/433853#M107605</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-03T20:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Missing value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-value/m-p/433867#M107611</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am sorry, I mean I give the solution (credit) to you, bu accidentally check to Reeza.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for you code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Phan S.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 20:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-value/m-p/433867#M107611</guid>
      <dc:creator>PhanS</dc:creator>
      <dc:date>2018-02-03T20:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Missing value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-value/m-p/433884#M107621</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31493"&gt;@PhanS&lt;/a&gt;&amp;nbsp;You can change that to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/42042"&gt;@stat_sas&lt;/a&gt;, just select theirs instead.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 21:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-value/m-p/433884#M107621</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-03T21:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Missing value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-value/m-p/433934#M107651</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am glad you have the solution. I am also&amp;nbsp; learning from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;'s&amp;nbsp;posts&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2018 03:25:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-value/m-p/433934#M107651</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2018-02-04T03:25:28Z</dc:date>
    </item>
  </channel>
</rss>

