<?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: KNN - SAS Procedure to run KNN without target variable in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/KNN-SAS-Procedure-to-run-KNN-without-target-variable/m-p/303487#M60795</link>
    <description>&lt;P&gt;Try: Proc Cluster, Aceclus and Fastclus&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_syntax01.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_cluster_syntax01.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2016 03:38:34 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-10-10T03:38:34Z</dc:date>
    <item>
      <title>KNN - SAS Procedure to run KNN without target variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/KNN-SAS-Procedure-to-run-KNN-without-target-variable/m-p/303486#M60794</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to run KNN on set of standardized&amp;nbsp;inputs and identify 20 neighbors using Euclidean distance or other&amp;nbsp;similar distance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get&amp;nbsp;top N neighbor, distance between the neighbors and my item as output. I don't have a target variable in my dataset, so I need this procedure to identify my neighbors based only on input space. I have 21K items and&amp;nbsp;145 variables in my dataset, so I'm also looking for efficiency of the&amp;nbsp;procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried MBR node in Enterprise miner and PROC DISCRIM in base SAS, but both requires target variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone&amp;nbsp;kindly point me to the right procedure that would be helpful to implement my problem. Let me know if any other details are needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shan&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 03:28:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/KNN-SAS-Procedure-to-run-KNN-without-target-variable/m-p/303486#M60794</guid>
      <dc:creator>Shanmugavel_g</dc:creator>
      <dc:date>2016-10-10T03:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: KNN - SAS Procedure to run KNN without target variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/KNN-SAS-Procedure-to-run-KNN-without-target-variable/m-p/303487#M60795</link>
      <description>&lt;P&gt;Try: Proc Cluster, Aceclus and Fastclus&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_syntax01.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_cluster_syntax01.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 03:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/KNN-SAS-Procedure-to-run-KNN-without-target-variable/m-p/303487#M60795</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-10T03:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: KNN - SAS Procedure to run KNN without target variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/KNN-SAS-Procedure-to-run-KNN-without-target-variable/m-p/303490#M60796</link>
      <description>&lt;P&gt;Try using proc modeclus with options neighbor and dk=&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
proc modeclus data=myData dk=21 neighbor;
var var1-var145;
id Item;
ods output Neighbor=myNeighbors;
run;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;test with a subset first!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 04:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/KNN-SAS-Procedure-to-run-KNN-without-target-variable/m-p/303490#M60796</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-10-10T04:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: KNN - SAS Procedure to run KNN without target variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/KNN-SAS-Procedure-to-run-KNN-without-target-variable/m-p/303491#M60797</link>
      <description>&lt;P&gt;Thanks for quick reply. I will take a look into these procedure, run it on&amp;nbsp;my data and will let you know the&amp;nbsp;results.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 04:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/KNN-SAS-Procedure-to-run-KNN-without-target-variable/m-p/303491#M60797</guid>
      <dc:creator>Shanmugavel_g</dc:creator>
      <dc:date>2016-10-10T04:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: KNN - SAS Procedure to run KNN without target variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/KNN-SAS-Procedure-to-run-KNN-without-target-variable/m-p/303492#M60798</link>
      <description>Thanks for quick reply.&lt;BR /&gt;I'll try your code on my dataset and let you know the results. Thanks for the help.</description>
      <pubDate>Mon, 10 Oct 2016 04:15:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/KNN-SAS-Procedure-to-run-KNN-without-target-variable/m-p/303492#M60798</guid>
      <dc:creator>Shanmugavel_g</dc:creator>
      <dc:date>2016-10-10T04:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: KNN - SAS Procedure to run KNN without target variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/KNN-SAS-Procedure-to-run-KNN-without-target-variable/m-p/303527#M60800</link>
      <description>&lt;P&gt;Coincidence .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2016/09/14/nearest-neighbors-sas.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2016/09/14/nearest-neighbors-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2016/09/19/nearest-neighbor-distances.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2016/09/19/nearest-neighbor-distances.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2016/09/28/distance-between-two-group.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2016/09/28/distance-between-two-group.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 10:57:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/KNN-SAS-Procedure-to-run-KNN-without-target-variable/m-p/303527#M60800</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-10T10:57:41Z</dc:date>
    </item>
  </channel>
</rss>

