<?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: count the number of occurrence  certain value and missing values in column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-occurrence-certain-value-and-missing-values/m-p/712699#M219786</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id x;
datalines;
1 1
2 2
3 2
4 .
5 1
6 2
7 .
8 1
;

proc freq data=have;
 where x in (.,2);
 tables x/list missing;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 20 Jan 2021 14:29:28 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2021-01-20T14:29:28Z</dc:date>
    <item>
      <title>count the number of occurrence  certain value and missing values in column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-occurrence-certain-value-and-missing-values/m-p/712696#M219783</link>
      <description>&lt;P&gt;Hi, is there a quick way to count number of occurrence of "2", and number of missings (count separately) for x? thanks! Lee&lt;BR /&gt;data have;&lt;BR /&gt;input id x;&lt;BR /&gt;datalines;&lt;BR /&gt;id x&lt;BR /&gt;1 1&lt;BR /&gt;2 2&lt;BR /&gt;3 2&lt;BR /&gt;4 .&lt;BR /&gt;5 1&lt;BR /&gt;6 2&lt;BR /&gt;7 .&lt;BR /&gt;8 1&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 14:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-occurrence-certain-value-and-missing-values/m-p/712696#M219783</guid>
      <dc:creator>leeshea06</dc:creator>
      <dc:date>2021-01-20T14:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of occurrence  certain value and missing values in column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-occurrence-certain-value-and-missing-values/m-p/712698#M219785</link>
      <description>&lt;P&gt;PROC FREQ is an easy way to count.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=have ;
  where x in (. 2);
  tables x / missing;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jan 2021 14:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-occurrence-certain-value-and-missing-values/m-p/712698#M219785</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-01-20T14:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of occurrence  certain value and missing values in column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-occurrence-certain-value-and-missing-values/m-p/712699#M219786</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id x;
datalines;
1 1
2 2
3 2
4 .
5 1
6 2
7 .
8 1
;

proc freq data=have;
 where x in (.,2);
 tables x/list missing;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jan 2021 14:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-occurrence-certain-value-and-missing-values/m-p/712699#M219786</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2021-01-20T14:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of occurrence  certain value and missing values in column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-occurrence-certain-value-and-missing-values/m-p/712700#M219787</link>
      <description>&lt;P&gt;Use PROC FREQ and remember the Missing Option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id x;
datalines;
id x
1 1
2 2
3 2
4 .
5 1
6 2
7 .
8 1
;

proc freq data = have;
   tables x / missing nocum nopercent;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jan 2021 14:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-occurrence-certain-value-and-missing-values/m-p/712700#M219787</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-01-20T14:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of occurrence  certain value and missing values in column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-occurrence-certain-value-and-missing-values/m-p/713046#M219919</link>
      <description>Maybe I am full head of SQL.&lt;BR /&gt;&lt;BR /&gt;data have;&lt;BR /&gt;input id x;&lt;BR /&gt;datalines;&lt;BR /&gt;id x&lt;BR /&gt;1 1&lt;BR /&gt;2 2&lt;BR /&gt;3 2&lt;BR /&gt;4 .&lt;BR /&gt;5 1&lt;BR /&gt;6 2&lt;BR /&gt;7 .&lt;BR /&gt;8 1&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;select sum(x=2) as n_2,nmiss(x) as n_miss&lt;BR /&gt; from have;&lt;BR /&gt;quit;</description>
      <pubDate>Thu, 21 Jan 2021 12:47:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-occurrence-certain-value-and-missing-values/m-p/713046#M219919</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-01-21T12:47:07Z</dc:date>
    </item>
  </channel>
</rss>

