<?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 Clustering in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Clustering/m-p/365362#M2702</link>
    <description>&lt;P&gt;I am trying to implement the K-means Clustering algorithm. I imported the data set(CREDIT) to sas&amp;nbsp; ,&amp;nbsp; replaced the missing values (NA) with 0 of the variable that i need&amp;nbsp; ( MonthlyIncome ) but variable have the character data type.&amp;nbsp; But&amp;nbsp;when i try to convert this variable to numeric to do the&amp;nbsp;Scaling process&amp;nbsp; with the following code the log is showing the following errors. please help me..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error 1: Found " Monthly_Income"&amp;nbsp; when expecting&amp;nbsp; " ;"&lt;/P&gt;&lt;P&gt;error2: Statement "Monthly_Income" is not valid;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Proc standerd data=CREDIT mean=0 std=1;&lt;/P&gt;&lt;P&gt;out=CREDIT1;&lt;/P&gt;&lt;P&gt;var&amp;nbsp; age MonthlyIncome debtratio etc...............;&lt;/P&gt;&lt;P&gt;Var Monthly_Inc=(MonthlyIncome, best12.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2017 13:41:02 GMT</pubDate>
    <dc:creator>NVN</dc:creator>
    <dc:date>2017-06-08T13:41:02Z</dc:date>
    <item>
      <title>Clustering</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Clustering/m-p/365362#M2702</link>
      <description>&lt;P&gt;I am trying to implement the K-means Clustering algorithm. I imported the data set(CREDIT) to sas&amp;nbsp; ,&amp;nbsp; replaced the missing values (NA) with 0 of the variable that i need&amp;nbsp; ( MonthlyIncome ) but variable have the character data type.&amp;nbsp; But&amp;nbsp;when i try to convert this variable to numeric to do the&amp;nbsp;Scaling process&amp;nbsp; with the following code the log is showing the following errors. please help me..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error 1: Found " Monthly_Income"&amp;nbsp; when expecting&amp;nbsp; " ;"&lt;/P&gt;&lt;P&gt;error2: Statement "Monthly_Income" is not valid;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Proc standerd data=CREDIT mean=0 std=1;&lt;/P&gt;&lt;P&gt;out=CREDIT1;&lt;/P&gt;&lt;P&gt;var&amp;nbsp; age MonthlyIncome debtratio etc...............;&lt;/P&gt;&lt;P&gt;Var Monthly_Inc=(MonthlyIncome, best12.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 13:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Clustering/m-p/365362#M2702</guid>
      <dc:creator>NVN</dc:creator>
      <dc:date>2017-06-08T13:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Clustering</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Clustering/m-p/365387#M2703</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First convert variable in data step and then standardize.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 14:07:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Clustering/m-p/365387#M2703</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2017-06-08T14:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Clustering</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Clustering/m-p/365402#M2705</link>
      <description>&lt;P&gt;Data step..?&amp;nbsp; you mean..? at the time of importing the data set to sas.?&amp;nbsp; or&amp;nbsp; change the type directly.?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 14:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Clustering/m-p/365402#M2705</guid>
      <dc:creator>NVN</dc:creator>
      <dc:date>2017-06-08T14:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Clustering</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Clustering/m-p/365410#M2707</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/147075"&gt;@NVN&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Data step..?&amp;nbsp; you mean..? at the time of importing the data set to sas.?&amp;nbsp; or&amp;nbsp; change the type directly.?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Best would be to insure that the data was read into SAS as a numeric.&lt;/P&gt;
&lt;P&gt;If that isn't practical for some reason you can use a data step to change:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set have (rename=(income=textincome));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; income = input(textincome,best10.);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* assign format or labels as desired*/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; drop textincome;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the rename is so you could use the same varaible name as you cannot change sas data types directly.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 15:14:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Clustering/m-p/365410#M2707</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-08T15:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Clustering</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Clustering/m-p/365499#M2716</link>
      <description>&lt;P&gt;It is working..&amp;nbsp; Thank you&amp;nbsp; soo much guys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 19:56:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Clustering/m-p/365499#M2716</guid>
      <dc:creator>NVN</dc:creator>
      <dc:date>2017-06-08T19:56:43Z</dc:date>
    </item>
  </channel>
</rss>

