<?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: Problems with missing values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-missing-values/m-p/121543#M259793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because it is not missing, instead, it has the value of character '.'&amp;nbsp;&amp;nbsp; . is missing for number, while for char, ' 'blank is considered as missing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jun 2013 00:06:39 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2013-06-28T00:06:39Z</dc:date>
    <item>
      <title>Problems with missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-missing-values/m-p/121542#M259792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm analyzing a dataset, which contains many variables with missing values. All the missing values are coded as ".". I do not want to include the missing values in analysis. However, for one of the variables, SAS keeps on including the missing values also in the table as if "." is a separate category, e.g.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;INCOME CATEGORY&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;FREQUENCY&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;PERCENTAGE&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;.&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;19.7183&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&amp;lt;15,000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;35.2113&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;15000 TO LESS THAN 25000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30.9859&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;25000 TO LESS THAN 35000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;14.0845&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;TOTAL&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;35500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Surprisingly, this happens only for one variable. For the others, the missing values are successfully excluded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give any clue, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 23:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-with-missing-values/m-p/121542#M259792</guid>
      <dc:creator>Deep81</dc:creator>
      <dc:date>2013-06-27T23:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-missing-values/m-p/121543#M259793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because it is not missing, instead, it has the value of character '.'&amp;nbsp;&amp;nbsp; . is missing for number, while for char, ' 'blank is considered as missing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 00:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-with-missing-values/m-p/121543#M259793</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-06-28T00:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-missing-values/m-p/121544#M259794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but actually it is . In the question I put the quotation marks just to emphasize that I used . instead of missing values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 00:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-with-missing-values/m-p/121544#M259794</guid>
      <dc:creator>Deep81</dc:creator>
      <dc:date>2013-06-28T00:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-missing-values/m-p/121545#M259795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Show me your data, and the way you use to exclude missing values. I did not get the idea from ".", rather, the way you present your data in your first post. You have put "." along with something like "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;15000 TO LESS THAN 25000&lt;/SPAN&gt;", which obviously is char.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 00:45:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-with-missing-values/m-p/121545#M259795</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-06-28T00:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-missing-values/m-p/121546#M259796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is because your character variable has a period in it instead of being all blanks.&lt;/P&gt;&lt;P&gt;Either re-code the data or add a where clause to eliminate the observations were INCOME_CATEGORY='.' .&lt;/P&gt;&lt;P&gt;Try this little piece of code to see how CATEGORY and CATEGORY2 are treated differently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have ;&lt;/P&gt;&lt;P&gt; length income 8 category $20 freq 8 ;&lt;/P&gt;&lt;P&gt; infile cards dsd dlm='|';&lt;/P&gt;&lt;P&gt; input income category freq ;&lt;/P&gt;&lt;P&gt; category2=category;&lt;/P&gt;&lt;P&gt; if category2=' ' then category2='.';&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;.|.|7000&lt;/P&gt;&lt;P&gt;10000|&amp;lt;15,000|12500&lt;/P&gt;&lt;P&gt;20000|15000 TO LESS THAN 25000|11000&lt;/P&gt;&lt;P&gt;30000|25000 TO LESS THAN 35000|5000&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc freq ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tables income category category2 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; weight freq ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 01:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-with-missing-values/m-p/121546#M259796</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-06-28T01:49:01Z</dc:date>
    </item>
  </channel>
</rss>

