<?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: hierarchical clustering syntax error in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/hierarchical-clustering-syntax-error/m-p/342293#M5107</link>
    <description>&lt;P&gt;I have to &lt;SPAN style="margin: 0px; line-height: 107%; font-family: 'Times New Roman',serif; font-size: 12pt;"&gt;&lt;FONT color="#000000"&gt;Perform hierarchical cluster analysis on the PDA data. As all the other variables are categorical can i keep it in var statement?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0px; line-height: 107%; font-family: 'Times New Roman',serif; font-size: 12pt;"&gt;&lt;FONT color="#000000"&gt;I am attaching the description herewith.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Mar 2017 22:57:17 GMT</pubDate>
    <dc:creator>ashmishah</dc:creator>
    <dc:date>2017-03-18T22:57:17Z</dc:date>
    <item>
      <title>hierarchical clustering syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/hierarchical-clustering-syntax-error/m-p/342249#M5105</link>
      <description>&lt;P&gt;I am learning sas and totally new to this field. I have 2 doubts:&lt;/P&gt;&lt;P&gt;1. &amp;nbsp;I have to do hierarchical clustering for a dataset. How can i do hierarchical clustering using 2 dataset out of which one is demographic data and other is survey data.&lt;/P&gt;&lt;P&gt;2. I was trying to write a code to do clustering for survey data. Here is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data a1;&lt;BR /&gt;&amp;nbsp;infile "/folders/myfolders/pda.csv" dlm=',' firstobs=2;&lt;BR /&gt;&amp;nbsp;input ID $ Innovator $ Use_message $ Use_cell $&amp;nbsp;Use_PIM $ Inf_passive $&amp;nbsp;INF_active $ remote_access $ Share_info $ Monitor $&amp;nbsp;Email $ Web $ M_media $ ergonomic $ monthly price;&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;proc cluster simple noeigen method=centroid rmsstd rsquare nonorm outtree=a2;&lt;BR /&gt;id ID Innovator Use_message Use_cell Use_PIM Inf_passive INF_active remote_access Share_info Monitor Email Web M_media ergonomic;&lt;BR /&gt;var price monthly;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it is showing&amp;nbsp;this again and again.&lt;/P&gt;&lt;DIV class="sasSource"&gt;proc cluster simple noeigen method=centroid rmsstd rsquare nonorm outtree=a2;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;63&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id ID Innovator Use_message Use_cell Use_PIM Inf_passive INF_active remote_access Share_info Monitor Email Web M_media&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _________&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;63&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ! ergonomic;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Expecting ;.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;64&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var price monthly;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;65&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;How can i proceed with it.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;I am attaching one of the file here.&lt;/DIV&gt;</description>
      <pubDate>Sat, 18 Mar 2017 17:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/hierarchical-clustering-syntax-error/m-p/342249#M5105</guid>
      <dc:creator>ashmishah</dc:creator>
      <dc:date>2017-03-18T17:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: hierarchical clustering syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/hierarchical-clustering-syntax-error/m-p/342280#M5106</link>
      <description>&lt;P&gt;Your ID statement is incorrect.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at the documentation, it states that it requires a single variable, not variable(s), and is used to identify a record. It should be unique for each observation. I'm not sure what you're trying to do with this, so can't make suggestions beyond the correction.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="xis-title"&gt;
&lt;H3 class="xis-title"&gt;ID Statement&lt;/H3&gt;
&lt;/DIV&gt;
&lt;DIV id="statug_cluster000896" class="AAstatementblock"&gt;
&lt;UL class="AAstatementblock" type="none"&gt;
&lt;LI&gt;
&lt;P&gt;&lt;SPAN class="AAstatement"&gt;ID&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="AAstatementoptional"&gt;variable&lt;/SPAN&gt;;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;A class="indexterm" name="statug.cluster.a0000000200" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The values of the ID variable identify observations in the displayed cluster history&lt;/STRONG&gt; and in the OUTTREE= data set. If the ID statement is omitted, each observation is denoted by&amp;nbsp;&lt;CODE class="AAvarname"&gt;OB&lt;SPAN class=" AAmathtext"&gt;n&lt;/SPAN&gt;&lt;/CODE&gt;, where&amp;nbsp;&lt;SPAN class=" AAmathtext"&gt;n&lt;/SPAN&gt;&amp;nbsp;is the observation number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_cluster_syntax05.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_cluster_syntax05.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 21:34:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/hierarchical-clustering-syntax-error/m-p/342280#M5106</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-18T21:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: hierarchical clustering syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/hierarchical-clustering-syntax-error/m-p/342293#M5107</link>
      <description>&lt;P&gt;I have to &lt;SPAN style="margin: 0px; line-height: 107%; font-family: 'Times New Roman',serif; font-size: 12pt;"&gt;&lt;FONT color="#000000"&gt;Perform hierarchical cluster analysis on the PDA data. As all the other variables are categorical can i keep it in var statement?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0px; line-height: 107%; font-family: 'Times New Roman',serif; font-size: 12pt;"&gt;&lt;FONT color="#000000"&gt;I am attaching the description herewith.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 22:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/hierarchical-clustering-syntax-error/m-p/342293#M5107</guid>
      <dc:creator>ashmishah</dc:creator>
      <dc:date>2017-03-18T22:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: hierarchical clustering syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/hierarchical-clustering-syntax-error/m-p/342298#M5108</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/126926"&gt;@ashmishah&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I am learning sas and totally new to this field. I have 2 doubts:&lt;/P&gt;
&lt;P&gt;1. &amp;nbsp;I have to do hierarchical clustering for a dataset. How can i do hierarchical clustering using 2 dataset out of which one is demographic data and other is survey data.&lt;/P&gt;
&lt;P&gt;2. I was trying to write a code to do clustering for survey data. Here is the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data a1;&lt;BR /&gt;&amp;nbsp;infile "/folders/myfolders/pda.csv" dlm=',' firstobs=2;&lt;BR /&gt;&amp;nbsp;input ID $ Innovator $ Use_message $ Use_cell $&amp;nbsp;Use_PIM $ Inf_passive $&amp;nbsp;INF_active $ remote_access $ Share_info $ Monitor $&amp;nbsp;Email $ Web $ M_media $ ergonomic $ monthly price;&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;
&lt;P&gt;proc cluster simple noeigen method=centroid rmsstd rsquare nonorm outtree=a2;&lt;BR /&gt;id ID Innovator Use_message Use_cell Use_PIM Inf_passive INF_active remote_access Share_info Monitor Email Web M_media ergonomic;&lt;BR /&gt;var price monthly;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it is showing&amp;nbsp;this again and again.&lt;/P&gt;
&lt;DIV class="sasSource"&gt;proc cluster simple noeigen method=centroid rmsstd rsquare nonorm outtree=a2;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;63&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id ID Innovator Use_message Use_cell Use_PIM Inf_passive INF_active remote_access Share_info Monitor Email Web M_media&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _________&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;63&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ! ergonomic;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;ERROR 22-322: Expecting ;.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;64&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var price monthly;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;65&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;How can i proceed with it.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;I am attaching one of the file here.&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I personally have a policy of not answering homework questions. My advice would be to work through the examples in the documentation first or one from your textbook. These should give you enough of a basis to answer your homework questions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 23:40:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/hierarchical-clustering-syntax-error/m-p/342298#M5108</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-18T23:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: hierarchical clustering syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/hierarchical-clustering-syntax-error/m-p/342316#M5109</link>
      <description>&lt;PRE&gt;
I noticed you have some character variables.
proc cluster can not handle the character variables.

Try use PROC DISTANCE to get distance matrix and 
feed it into proc cluster .


&lt;/PRE&gt;</description>
      <pubDate>Sun, 19 Mar 2017 02:35:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/hierarchical-clustering-syntax-error/m-p/342316#M5109</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-03-19T02:35:23Z</dc:date>
    </item>
  </channel>
</rss>

