<?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 Making plot for clusters in K means clustering in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Making-plot-for-clusters-in-K-means-clustering/m-p/565725#M158877</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am doing K-Means clustering in SAS Guide. I have 8950 observations and 21 variables. I chose 6 clusters, but unable to get proper cluster plot. Below my code. Please advise&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fastclus data=cluster maxclusters=6 out =  clust;
var BALANCE--PAYMENT_MINPAY;
run;

proc sort;
by cluster distance;
run;

proc print;
by Cluster;
run;

proc freq data=work.clust; tables cust_id*cluster / nocol nopercent; run;

proc candisc out = can; 
class cluster; 
var BALANCE	--PAYMENT_MINPAY;
run;

proc sgplot data = can; 
title "Cluster Analysis for Bank datasets"; 
scatter y = can2 x = can1 / group = cluster; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I chose K = 6 randomly. Anyone can suggest how to choose K in K Means clustering at SAS. I check the elbow method for selecting clusters in Python. No idea how to do it SAS? I am getting good cluster graph for the same dataset in Python.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2019 01:49:31 GMT</pubDate>
    <dc:creator>sdhilip</dc:creator>
    <dc:date>2019-06-13T01:49:31Z</dc:date>
    <item>
      <title>Making plot for clusters in K means clustering</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Making-plot-for-clusters-in-K-means-clustering/m-p/565725#M158877</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am doing K-Means clustering in SAS Guide. I have 8950 observations and 21 variables. I chose 6 clusters, but unable to get proper cluster plot. Below my code. Please advise&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fastclus data=cluster maxclusters=6 out =  clust;
var BALANCE--PAYMENT_MINPAY;
run;

proc sort;
by cluster distance;
run;

proc print;
by Cluster;
run;

proc freq data=work.clust; tables cust_id*cluster / nocol nopercent; run;

proc candisc out = can; 
class cluster; 
var BALANCE	--PAYMENT_MINPAY;
run;

proc sgplot data = can; 
title "Cluster Analysis for Bank datasets"; 
scatter y = can2 x = can1 / group = cluster; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I chose K = 6 randomly. Anyone can suggest how to choose K in K Means clustering at SAS. I check the elbow method for selecting clusters in Python. No idea how to do it SAS? I am getting good cluster graph for the same dataset in Python.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 01:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Making-plot-for-clusters-in-K-means-clustering/m-p/565725#M158877</guid>
      <dc:creator>sdhilip</dc:creator>
      <dc:date>2019-06-13T01:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Making plot for clusters in K means clustering</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Making-plot-for-clusters-in-K-means-clustering/m-p/565737#M158885</link>
      <description>&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_introclus_sect010.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_introclus_sect010.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;</description>
      <pubDate>Thu, 13 Jun 2019 03:27:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Making-plot-for-clusters-in-K-means-clustering/m-p/565737#M158885</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-13T03:27:36Z</dc:date>
    </item>
  </channel>
</rss>

