<?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 FREQ Remove Missing Values as Category in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-FREQ-Remove-Missing-Values-as-Category/m-p/658291#M197296</link>
    <description>&lt;P&gt;When ethnicity=&lt;CODE class=" language-sas"&gt;'&lt;/CODE&gt;.&lt;CODE class=" language-sas"&gt;'&lt;/CODE&gt; this is not a missing value for a character variable. It has a value of one character, which is a period.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want a character variable to have a missing value, it must be a single space, such as in this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ethnicity=' ';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 13 Jun 2020 18:53:23 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-06-13T18:53:23Z</dc:date>
    <item>
      <title>Proc FREQ Remove Missing Values as Category</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-FREQ-Remove-Missing-Values-as-Category/m-p/658290#M197295</link>
      <description>&lt;P&gt;How do I build a frequency table without including missing values as a category in the TABLES statement? I thought SAS doesn't include missing values as a category by default, but when I run the code below, that doesn't seem to be the case (missing values in 'ethnicity' are interpreted as a category in my output data set 'eth').&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=dt noprint ;&lt;BR /&gt;by firm year;&lt;BR /&gt;tables ethnicity / out=eth ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample output:&lt;/P&gt;&lt;P&gt;firm year ethnicity&amp;nbsp; &amp;nbsp; &amp;nbsp; percent&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; 1990&amp;nbsp; .&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; 1990&amp;nbsp; caucasian&amp;nbsp; 50&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2020 18:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-FREQ-Remove-Missing-Values-as-Category/m-p/658290#M197295</guid>
      <dc:creator>sjj_</dc:creator>
      <dc:date>2020-06-13T18:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc FREQ Remove Missing Values as Category</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-FREQ-Remove-Missing-Values-as-Category/m-p/658291#M197296</link>
      <description>&lt;P&gt;When ethnicity=&lt;CODE class=" language-sas"&gt;'&lt;/CODE&gt;.&lt;CODE class=" language-sas"&gt;'&lt;/CODE&gt; this is not a missing value for a character variable. It has a value of one character, which is a period.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want a character variable to have a missing value, it must be a single space, such as in this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ethnicity=' ';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2020 18:53:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-FREQ-Remove-Missing-Values-as-Category/m-p/658291#M197296</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-13T18:53:23Z</dc:date>
    </item>
  </channel>
</rss>

