<?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 Cluster Analysis in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Cluster-Analysis/m-p/264902#M57823</link>
    <description>&lt;P&gt;I have a data structure as follow:&amp;nbsp;Customer bought some items.&lt;/P&gt;&lt;P&gt;Customer_ID, ITEM_ID&lt;/P&gt;&lt;P&gt;Adams, 18&lt;BR /&gt;Adams, 29&lt;BR /&gt;Adams, 30&lt;BR /&gt;Allen, 9&lt;BR /&gt;Allen, 27&lt;BR /&gt;Anderson,24&lt;BR /&gt;Anderson,26&lt;BR /&gt;Bailey, 7&lt;BR /&gt;Bailey, 30&lt;BR /&gt;Baker, 7&lt;BR /&gt;Baker, 10&lt;BR /&gt;Baker, 19&lt;BR /&gt;Baker, 31&lt;BR /&gt;Barnes, 10&lt;BR /&gt;Barnes, 21&lt;BR /&gt;Barnes, 22&lt;BR /&gt;Barnes, 31&lt;BR /&gt;...&lt;BR /&gt;etc&lt;/P&gt;&lt;P&gt;How can I write SAS Procedure (PROC CLUSTER? PROC FASTCLU?) to cluster Customers into distinct groups, say Group1, Group2 based on their ITEM_IDs bought?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Base SAS 9.4 or SAS EG 6.1.&lt;/P&gt;&lt;P&gt;CSV data is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANKS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2016 21:08:04 GMT</pubDate>
    <dc:creator>isas_iam</dc:creator>
    <dc:date>2016-04-19T21:08:04Z</dc:date>
    <item>
      <title>Cluster Analysis</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Cluster-Analysis/m-p/264902#M57823</link>
      <description>&lt;P&gt;I have a data structure as follow:&amp;nbsp;Customer bought some items.&lt;/P&gt;&lt;P&gt;Customer_ID, ITEM_ID&lt;/P&gt;&lt;P&gt;Adams, 18&lt;BR /&gt;Adams, 29&lt;BR /&gt;Adams, 30&lt;BR /&gt;Allen, 9&lt;BR /&gt;Allen, 27&lt;BR /&gt;Anderson,24&lt;BR /&gt;Anderson,26&lt;BR /&gt;Bailey, 7&lt;BR /&gt;Bailey, 30&lt;BR /&gt;Baker, 7&lt;BR /&gt;Baker, 10&lt;BR /&gt;Baker, 19&lt;BR /&gt;Baker, 31&lt;BR /&gt;Barnes, 10&lt;BR /&gt;Barnes, 21&lt;BR /&gt;Barnes, 22&lt;BR /&gt;Barnes, 31&lt;BR /&gt;...&lt;BR /&gt;etc&lt;/P&gt;&lt;P&gt;How can I write SAS Procedure (PROC CLUSTER? PROC FASTCLU?) to cluster Customers into distinct groups, say Group1, Group2 based on their ITEM_IDs bought?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Base SAS 9.4 or SAS EG 6.1.&lt;/P&gt;&lt;P&gt;CSV data is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANKS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 21:08:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Cluster-Analysis/m-p/264902#M57823</guid>
      <dc:creator>isas_iam</dc:creator>
      <dc:date>2016-04-19T21:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Analysis</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Cluster-Analysis/m-p/264914#M57825</link>
      <description>&lt;P&gt;Based on your problem description I think this may be Market Basket Analysis rather than cluster analysis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MBA is implemented in SAS EM but not Base. If you only have Base there's a macro written that will perform it. You can search for it on lexjansen.com&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are doing cluster analysis make sure to treat the variables as categorical sonce item 18 and item 17 are not a distance of 1 apart and that distance doesn't have any meaning.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 21:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Cluster-Analysis/m-p/264914#M57825</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-19T21:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Analysis</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Cluster-Analysis/m-p/264925#M57826</link>
      <description>&lt;P&gt;Thanks for responding.&lt;/P&gt;&lt;P&gt;I have SAS EM too and tried to run MBA on my data.&lt;/P&gt;&lt;P&gt;I got some output but not sure how to use them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my data, I have about 100 customers with multiple purchases (identified by ITEM_IDs).&lt;/P&gt;&lt;P&gt;I am trying to group these 100 customers into 4-5 clusters based on their purchased ITEM_IDs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I create a DISTANCE matrix of Customers based on their purchased ITEM_IDs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for more insights and inputs.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 22:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Cluster-Analysis/m-p/264925#M57826</guid>
      <dc:creator>isas_iam</dc:creator>
      <dc:date>2016-04-19T22:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Analysis</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Cluster-Analysis/m-p/264965#M57830</link>
      <description>&lt;P&gt;1) If there are only character variables out there, You can firstly use proc distance to get the distance matrix, and feed it into proc cluster, Search ( character variable cluster ) at support.sas.com , you will get the code.&lt;/P&gt;
&lt;P&gt;2) If there are mixed up character and numeric variable, two way I can thing is one is using Decision Tree (proc hpsplit), another&lt;/P&gt;
&lt;P&gt;way is general logistic regression (proc logistic or other proc can run logistic regression).&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 01:08:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Cluster-Analysis/m-p/264965#M57830</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-04-20T01:08:04Z</dc:date>
    </item>
  </channel>
</rss>

