<?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: Clustering in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Clustering/m-p/364013#M86267</link>
    <description>&lt;P&gt;Check out the GEODIST function&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n1korpfg2e18lon1nwpow9qijdxe.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n1korpfg2e18lon1nwpow9qijdxe.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Jun 2017 14:16:24 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-06-03T14:16:24Z</dc:date>
    <item>
      <title>Clustering</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clustering/m-p/363992#M86263</link>
      <description>&lt;P&gt;I have the following data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS &amp;nbsp; &amp;nbsp; &amp;nbsp;Lat &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Long &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SLOT&lt;/P&gt;&lt;P&gt;abc &amp;nbsp; &amp;nbsp;75.8233 &amp;nbsp; &amp;nbsp;26.2454 &amp;nbsp; &amp;nbsp; 1&lt;BR /&gt;abc &amp;nbsp; &amp;nbsp;75.4785 &amp;nbsp; &amp;nbsp;26.4589 &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;abc &amp;nbsp; &amp;nbsp;75.5495 &amp;nbsp; &amp;nbsp;26.4679 &amp;nbsp; &amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;abc &amp;nbsp; &amp;nbsp;75.4875 &amp;nbsp; &amp;nbsp;26.8997 &amp;nbsp; &amp;nbsp; 2&lt;BR /&gt;abc &amp;nbsp; &amp;nbsp;75.5649 &amp;nbsp; &amp;nbsp;26.7268 &amp;nbsp; &amp;nbsp; 2&lt;BR /&gt;abc &amp;nbsp; &amp;nbsp;75.5666 &amp;nbsp; &amp;nbsp;26.8647 &amp;nbsp; &amp;nbsp; 2&lt;BR /&gt;xyz &amp;nbsp; &amp;nbsp;75.4875 &amp;nbsp; &amp;nbsp;26.3842 &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;xyz &amp;nbsp; &amp;nbsp;75.4937 &amp;nbsp; &amp;nbsp;26.5877 &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;xyz &amp;nbsp; &amp;nbsp;75.8473 &amp;nbsp; &amp;nbsp;26.3971 &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;xyz &amp;nbsp; &amp;nbsp;75.7861 &amp;nbsp; &amp;nbsp;26.6884 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want a new column which shows the distances in the following way:&lt;/P&gt;&lt;P&gt;All the points with PS=abc and Slot=1 &amp;nbsp;should have their distances calculated from the first point of this group(i.e., &lt;SPAN&gt;&amp;nbsp;75.8233 &amp;nbsp; &amp;nbsp;26.2454&lt;/SPAN&gt;), similarly all the points with PS=abc and Slot=2 should have their distances calculated from the first point of this group(i.e., &lt;SPAN&gt;75.4875 &amp;nbsp; &amp;nbsp;26.8997&lt;/SPAN&gt;) and so on.&lt;/P&gt;&lt;P&gt;So please suggest me a solution for this.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 07:55:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clustering/m-p/363992#M86263</guid>
      <dc:creator>Himanshu007</dc:creator>
      <dc:date>2017-06-03T07:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Clustering</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clustering/m-p/364013#M86267</link>
      <description>&lt;P&gt;Check out the GEODIST function&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n1korpfg2e18lon1nwpow9qijdxe.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n1korpfg2e18lon1nwpow9qijdxe.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 14:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clustering/m-p/364013#M86267</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-06-03T14:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Clustering</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clustering/m-p/364216#M86351</link>
      <description>But this function is only there for finding the distances my concern is how to fix one point from each group(group means same PS and same Slot) as a fixed reference point from which the other distances are to be found</description>
      <pubDate>Mon, 05 Jun 2017 07:25:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clustering/m-p/364216#M86351</guid>
      <dc:creator>Himanshu007</dc:creator>
      <dc:date>2017-06-05T07:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Clustering</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clustering/m-p/364352#M86415</link>
      <description>&lt;P&gt;Assuming your data are sorted by PS and Slot as implied by the example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   by ps slot;
   retain firstLat Firstlong;
   if first.slot then do;
      firstlat=lat;
      firstlong=long;
   end;
   Dist = geodist(firstlat,firstlong,lat,long);
   drop firstlat firstlong;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Jun 2017 19:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clustering/m-p/364352#M86415</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-05T19:41:25Z</dc:date>
    </item>
  </channel>
</rss>

