<?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 How to take the Frequency of an array in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-take-the-Frequency-of-an-array/m-p/296149#M61976</link>
    <description>&lt;P&gt;How would I be able to take the frequencies in matrix. For the data I am using I have colums A, B, C, D, E., however, they do not represent different variables, so I do not want to know the frequency of each unique entry per column, but rather, the frequency of each unique entry for the matrix as a whole.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attatched is the matix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12925i96C0CD832D11F459/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Screen Shot 2016-08-26 at 10.23.05 PM.png" title="Screen Shot 2016-08-26 at 10.23.05 PM.png" /&gt;</description>
    <pubDate>Fri, 02 Sep 2016 16:11:30 GMT</pubDate>
    <dc:creator>drichmo1</dc:creator>
    <dc:date>2016-09-02T16:11:30Z</dc:date>
    <item>
      <title>How to take the Frequency of an array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-take-the-Frequency-of-an-array/m-p/296149#M61976</link>
      <description>&lt;P&gt;How would I be able to take the frequencies in matrix. For the data I am using I have colums A, B, C, D, E., however, they do not represent different variables, so I do not want to know the frequency of each unique entry per column, but rather, the frequency of each unique entry for the matrix as a whole.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attatched is the matix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12925i96C0CD832D11F459/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Screen Shot 2016-08-26 at 10.23.05 PM.png" title="Screen Shot 2016-08-26 at 10.23.05 PM.png" /&gt;</description>
      <pubDate>Fri, 02 Sep 2016 16:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-take-the-Frequency-of-an-array/m-p/296149#M61976</guid>
      <dc:creator>drichmo1</dc:creator>
      <dc:date>2016-09-02T16:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to take the Frequency of an array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-take-the-Frequency-of-an-array/m-p/296152#M61978</link>
      <description>&lt;P&gt;And the output should look like what for that example data?&lt;/P&gt;
&lt;P&gt;It isn't clear if you are looking for an overall frequency from the entire dataset or per row only.&lt;/P&gt;
&lt;P&gt;Also are those the only values that will ever appear among the variables or do you have the possibility of practically unlimited actual values for A B C D and E?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you are using the word "matrix" this might be better as a SAS/IML question.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 16:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-take-the-Frequency-of-an-array/m-p/296152#M61978</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-02T16:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to take the Frequency of an array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-take-the-Frequency-of-an-array/m-p/296264#M62008</link>
      <description>&lt;P&gt;I want to take the frequency if the whole dataset and I do not want the output to give me the out put based on A B C D E. They mean nothing for my data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 01:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-take-the-Frequency-of-an-array/m-p/296264#M62008</guid>
      <dc:creator>drichmo1</dc:creator>
      <dc:date>2016-09-03T01:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to take the Frequency of an array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-take-the-Frequency-of-an-array/m-p/296278#M62015</link>
      <description>&lt;PRE&gt;
Yes. It is IML thing.


data have;
input a b c d e;
cards;
1 2 3 6 2
3 4 7 1 .
2 . . 3 6 
;
run;
proc iml;
use have;
read all var{a b c d e} into x;
close;

call tabulate(level,freq,x);

print (level`)[l='level'] (freq`)[l='freq'];
quit;

&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Sep 2016 03:30:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-take-the-Frequency-of-an-array/m-p/296278#M62015</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-09-03T03:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to take the Frequency of an array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-take-the-Frequency-of-an-array/m-p/296821#M62248</link>
      <description>&lt;P&gt;Thanks for your help! It worked!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 19:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-take-the-Frequency-of-an-array/m-p/296821#M62248</guid>
      <dc:creator>drichmo1</dc:creator>
      <dc:date>2016-09-06T19:51:48Z</dc:date>
    </item>
  </channel>
</rss>

