<?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: cluster size in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/cluster-size/m-p/623132#M19890</link>
    <description>&lt;P&gt;You could use something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table newTable as
select *, count(distinct individualId) as clusterSize
from myData
group by clusterId;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where &lt;EM&gt;individualId&lt;/EM&gt; and &lt;EM&gt;clusterId&lt;/EM&gt; are variables in your dataset.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2020 18:25:58 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2020-02-07T18:25:58Z</dc:date>
    <item>
      <title>cluster size</title>
      <link>https://communities.sas.com/t5/New-SAS-User/cluster-size/m-p/623127#M19888</link>
      <description>&lt;P&gt;Hello helping hands,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 20,000 individuals in my dataset. All these individuals belong to 400 different clusters. I want to get how many people are there in each cluster.&amp;nbsp; i want to get the cluster size in the same dataset. Sorry i am very new with SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 17:51:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/cluster-size/m-p/623127#M19888</guid>
      <dc:creator>Deepai</dc:creator>
      <dc:date>2020-02-07T17:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: cluster size</title>
      <link>https://communities.sas.com/t5/New-SAS-User/cluster-size/m-p/623132#M19890</link>
      <description>&lt;P&gt;You could use something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table newTable as
select *, count(distinct individualId) as clusterSize
from myData
group by clusterId;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where &lt;EM&gt;individualId&lt;/EM&gt; and &lt;EM&gt;clusterId&lt;/EM&gt; are variables in your dataset.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 18:25:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/cluster-size/m-p/623132#M19890</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-02-07T18:25:58Z</dc:date>
    </item>
  </channel>
</rss>

