<?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 Time Series Clustering Example in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Time-Series-Clustering-Example/m-p/280133#M14762</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to perform a Cluster Analysis to build a scoring model in SAS exploiting some specific procedures as, for instance, PROC CLUSTER, PROC FASTCLUS and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a set of continuous variables in my dataset and I must cluster them all to compute the Population Stability Index and check for the frequency of each of them against a target variable, that is a dummy variable assuming value equal to 1 in the case the couterparty went on default and 0 otherwise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Browsing on the internet, I noted that SAS provides a lot of solutions about clustering analysis, but I was not able to exploit such SAS solutions to compute the clusters and get a new dataset with clustered values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to run the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC CLUSTER DATA = MYLIBRARY.MYDATASET METHOD = AVERAGE CCC PSEUDO&lt;BR /&gt;OUT = NEWDATASET;&lt;/P&gt;&lt;P&gt;PLOTS (MAXPOINTS = 200)=DEN(HEIGHT=RSQ);&lt;/P&gt;&lt;P&gt;VAR CONTINUOUS_VAR1 CONTINUOUS_VAR2 CONTINUOUS _VAR3;&lt;/P&gt;&lt;P&gt;ID TARGET_VARIABLE;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I did not get the new dataset containing the clustered variables or the cutoff values to build the clusters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jun 2016 11:37:44 GMT</pubDate>
    <dc:creator>Quantopic</dc:creator>
    <dc:date>2016-06-25T11:37:44Z</dc:date>
    <item>
      <title>Time Series Clustering Example</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Time-Series-Clustering-Example/m-p/280133#M14762</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to perform a Cluster Analysis to build a scoring model in SAS exploiting some specific procedures as, for instance, PROC CLUSTER, PROC FASTCLUS and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a set of continuous variables in my dataset and I must cluster them all to compute the Population Stability Index and check for the frequency of each of them against a target variable, that is a dummy variable assuming value equal to 1 in the case the couterparty went on default and 0 otherwise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Browsing on the internet, I noted that SAS provides a lot of solutions about clustering analysis, but I was not able to exploit such SAS solutions to compute the clusters and get a new dataset with clustered values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to run the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC CLUSTER DATA = MYLIBRARY.MYDATASET METHOD = AVERAGE CCC PSEUDO&lt;BR /&gt;OUT = NEWDATASET;&lt;/P&gt;&lt;P&gt;PLOTS (MAXPOINTS = 200)=DEN(HEIGHT=RSQ);&lt;/P&gt;&lt;P&gt;VAR CONTINUOUS_VAR1 CONTINUOUS_VAR2 CONTINUOUS _VAR3;&lt;/P&gt;&lt;P&gt;ID TARGET_VARIABLE;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I did not get the new dataset containing the clustered variables or the cutoff values to build the clusters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2016 11:37:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Time-Series-Clustering-Example/m-p/280133#M14762</guid>
      <dc:creator>Quantopic</dc:creator>
      <dc:date>2016-06-25T11:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Time Series Clustering Example</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Time-Series-Clustering-Example/m-p/280158#M14763</link>
      <description>&lt;P&gt;It looks like you are trying to imitate &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_cluster_gettingstarted.htm" target="_self"&gt;the Getting Started example for the CLUSTER procedure.&lt;/A&gt;&amp;nbsp; That's fine, but PROC CLUSTER is slightly more complex than the simpler FASTCLUS procedure, which perform k-means clustering. Try this example to get started. If you need tree-based models, you can revisit PROC CLUSTER later:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fastclus data=sashelp.iris out=Clust maxclusters=3;
   var SepalWidth SepalLength PetalWidth PetalLength;
   ID species;
run;

proc sgscatter data=Clust;
   matrix SepalWidth SepalLength PetalWidth PetalLength / group=cluster;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Jun 2016 16:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Time-Series-Clustering-Example/m-p/280158#M14763</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-06-25T16:17:42Z</dc:date>
    </item>
  </channel>
</rss>

