<?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: Counting non missing with proc freq; remove zeros from 'not missing' in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Counting-non-missing-with-proc-freq-remove-zeros-from-not/m-p/856097#M338285</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/173636"&gt;@Satori&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want is to make sure that the observations that are zero are counted as 'missing' or other class but not as 'not missing'. How can I do this?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Modify your format to include 0 as missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value missfmt .,0 ='Missing' other='Not Missing';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From now on, please include your SAS code in a code box, as I did above, by clicking on the "little running man" icon and then pasting your code into the window that appears.&lt;/P&gt;</description>
    <pubDate>Sat, 28 Jan 2023 16:03:12 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-01-28T16:03:12Z</dc:date>
    <item>
      <title>Counting non missing with proc freq; remove zeros from 'not missing'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Counting-non-missing-with-proc-freq-remove-zeros-from-not/m-p/856096#M338284</link>
      <description>&lt;P&gt;I am doing a proc freq to count the number of missing and not missing per variable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;proc format; value $missfmt ' '='Missing' other='Not Missing'; value missfmt . ='Missing' other='Not Missing';&lt;BR /&gt;proc freq data=have; format _NUMERIC_ missfmt.; tables _NUMERIC_ / missing missprint nocum;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I get is a table for each variable (only one variable - sales - is shown below)&lt;/P&gt;&lt;P&gt;The FREQ Procedure&lt;/P&gt;&lt;P&gt;Sales Frequency Percent&lt;BR /&gt;------------------------------------&lt;BR /&gt;Missing 10153881 47.32&lt;BR /&gt;Not Missing 11304829 52.68&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is to make sure that the observations that are zero are counted as 'missing' or other class but not as 'not missing'. How can I do this?&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 15:36:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Counting-non-missing-with-proc-freq-remove-zeros-from-not/m-p/856096#M338284</guid>
      <dc:creator>Satori</dc:creator>
      <dc:date>2023-01-28T15:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Counting non missing with proc freq; remove zeros from 'not missing'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Counting-non-missing-with-proc-freq-remove-zeros-from-not/m-p/856097#M338285</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/173636"&gt;@Satori&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want is to make sure that the observations that are zero are counted as 'missing' or other class but not as 'not missing'. How can I do this?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Modify your format to include 0 as missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value missfmt .,0 ='Missing' other='Not Missing';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From now on, please include your SAS code in a code box, as I did above, by clicking on the "little running man" icon and then pasting your code into the window that appears.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 16:03:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Counting-non-missing-with-proc-freq-remove-zeros-from-not/m-p/856097#M338285</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-28T16:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Counting non missing with proc freq; remove zeros from 'not missing'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Counting-non-missing-with-proc-freq-remove-zeros-from-not/m-p/856099#M338286</link>
      <description>&lt;P&gt;Zero frequency is not missing frequency. Missing frequency menas you do not know how many times a value is observed. Zero frequency means you do know that it was observed zero times.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 16:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Counting-non-missing-with-proc-freq-remove-zeros-from-not/m-p/856099#M338286</guid>
      <dc:creator>WeiChen</dc:creator>
      <dc:date>2023-01-28T16:55:21Z</dc:date>
    </item>
  </channel>
</rss>

