<?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: how to count the number of subjects in a recode in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-to-count-the-number-of-subjects-in-a-recode/m-p/725839#M28078</link>
    <description>&lt;P&gt;Take for instance the example data set SASHELP.SHOES.&amp;nbsp; Imagine that the region column identifies your subjects.&amp;nbsp; Then...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
   SELECT COUNT(DISTINCT(Region))) AS COUNT_DISTINCT_of_Region
      FROM SASHELP.SHOES ;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;We find with this that there are 10 regions (or imagined subjects).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Related article:&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sasdummy/2013/10/16/about-cardinality/" target="_blank" rel="noopener"&gt;Your data ain't good looking, but it has a nice cardinality - The SAS Dummy&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Mar 2021 19:05:39 GMT</pubDate>
    <dc:creator>PhilC</dc:creator>
    <dc:date>2021-03-12T19:05:39Z</dc:date>
    <item>
      <title>how to count the number of subjects in a recode</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-count-the-number-of-subjects-in-a-recode/m-p/725836#M28077</link>
      <description>&lt;P&gt;How do you count the number of subjects in a big dataset? Each subject has serval records , is there a way to find the number of subjects in the dataset?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 16:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-count-the-number-of-subjects-in-a-recode/m-p/725836#M28077</guid>
      <dc:creator>hjjijkkl</dc:creator>
      <dc:date>2021-03-12T16:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to count the number of subjects in a recode</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-count-the-number-of-subjects-in-a-recode/m-p/725839#M28078</link>
      <description>&lt;P&gt;Take for instance the example data set SASHELP.SHOES.&amp;nbsp; Imagine that the region column identifies your subjects.&amp;nbsp; Then...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
   SELECT COUNT(DISTINCT(Region))) AS COUNT_DISTINCT_of_Region
      FROM SASHELP.SHOES ;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;We find with this that there are 10 regions (or imagined subjects).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Related article:&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sasdummy/2013/10/16/about-cardinality/" target="_blank" rel="noopener"&gt;Your data ain't good looking, but it has a nice cardinality - The SAS Dummy&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 19:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-count-the-number-of-subjects-in-a-recode/m-p/725839#M28078</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2021-03-12T19:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to count the number of subjects in a recode</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-count-the-number-of-subjects-in-a-recode/m-p/725870#M28081</link>
      <description>Define big. &lt;BR /&gt;&lt;BR /&gt;If you get really, really big, you may want a hash solution. Otherwise, here are two ways to find the distinct counts;&lt;BR /&gt;&lt;A href="https://github.com/statgeek/SAS-Tutorials/blob/master/count_distinct_by_group.sas" target="_blank"&gt;https://github.com/statgeek/SAS-Tutorials/blob/master/count_distinct_by_group.sas&lt;/A&gt;</description>
      <pubDate>Fri, 12 Mar 2021 18:50:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-count-the-number-of-subjects-in-a-recode/m-p/725870#M28081</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-03-12T18:50:49Z</dc:date>
    </item>
  </channel>
</rss>

