<?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 Nearest neighbor with Proc Modeclus in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Nearest-neighbor-with-Proc-Modeclus/m-p/24795#M870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I think I found the problem.&amp;nbsp; To define a length for the output, you have to define an ID variable.&amp;nbsp; I defined the length of the ID variable in the data step just to make sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data in1;&lt;/P&gt;&lt;P&gt;set in1;&lt;/P&gt;&lt;P&gt;idv=_n_;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿﻿ods _all_ close; &lt;/P&gt;&lt;P&gt;proc modelus data=in1 dk=11 neighbor;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;var xpos ypos; &lt;/P&gt;&lt;P&gt;id idv;&lt;/P&gt;&lt;P&gt;ods output test1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help Art.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2011 22:06:13 GMT</pubDate>
    <dc:creator>Samryn</dc:creator>
    <dc:date>2011-10-06T22:06:13Z</dc:date>
    <item>
      <title>Nearest neighbor with Proc Modeclus</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Nearest-neighbor-with-Proc-Modeclus/m-p/24791#M866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get a list of nearest neighbors for a dataset using Proc Modeclus.&amp;nbsp; It appears to be working well, except there is a limit to the ID and neighbor value that I need to change.&amp;nbsp; It appears to be limited to 5 characters, and I need more than that.&amp;nbsp; Does anyone know a way to change this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿﻿ods _all_ close;&lt;/P&gt;&lt;P&gt;proc modelus data=in1 dk=11 neighbor;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var xpos ypos;&lt;/P&gt;&lt;P&gt;ods output test1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in1 has 861,075 observations, and the listing I get gives the nearest neighbor if the observation values are less than or equal to 99,999, but uses ***** for values larger than that.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 16:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Nearest-neighbor-with-Proc-Modeclus/m-p/24791#M866</guid>
      <dc:creator>Samryn</dc:creator>
      <dc:date>2011-10-06T16:16:35Z</dc:date>
    </item>
    <item>
      <title>Nearest neighbor with Proc Modeclus</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Nearest-neighbor-with-Proc-Modeclus/m-p/24792#M867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which output table is truncating the results?&amp;nbsp; It may be a column that simply needs to be assigned a wider format via proc template.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 18:08:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Nearest-neighbor-with-Proc-Modeclus/m-p/24792#M867</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-06T18:08:08Z</dc:date>
    </item>
    <item>
      <title>Nearest neighbor with Proc Modeclus</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Nearest-neighbor-with-Proc-Modeclus/m-p/24793#M868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; That is a great idea, but I don't know where the 5 character limit is being defined.&amp;nbsp; I changed the template for Neighbor, and formatted the values to be 8 characters long, and so the format changed, but the length did not.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 21:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Nearest-neighbor-with-Proc-Modeclus/m-p/24793#M868</guid>
      <dc:creator>Samryn</dc:creator>
      <dc:date>2011-10-06T21:06:38Z</dc:date>
    </item>
    <item>
      <title>Nearest neighbor with Proc Modeclus</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Nearest-neighbor-with-Proc-Modeclus/m-p/24794#M869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would have thought the default of 8 characters would have been applied::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DL&gt;&lt;DT id="statug.modeclus.outlengthopt"&gt;&lt;STRONG&gt;OUTLENGTH=&lt;EM&gt;n&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DT&gt;&lt;DT id="a0000000163"&gt;&lt;STRONG&gt;OUTL=&lt;EM&gt;n&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DT&gt;&lt;DD style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #000000; margin-bottom: 1.4em;"&gt;&lt;P style="margin-right: 5px; margin-bottom: 1.4em; font-style: normal; font-size: 13px; line-height: 1.25em; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; text-align: left; color: #000000;"&gt;&lt;A class="syntaxindex" id="statug.modeclus.a0000000078" style="font-style: normal; font-size: 13px; line-height: 1.25em; font-family: inherit; text-align: left;"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.modeclus.a0000000079" style="font-style: normal; font-size: 13px; line-height: 1.25em; font-family: inherit; text-align: left;"&gt;&lt;/A&gt;specifies the length of those output variables that are not copied from the input data set but are created by PROC MODECLUS.&lt;/P&gt;&lt;P style="margin-right: 5px; margin-bottom: 1.4em; font-style: normal; font-size: 13px; line-height: 1.25em; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; text-align: left; color: #000000;"&gt;The OUTLENGTH= option applies only to the following variables that appear in all of the output data sets: &lt;SPAN class="variable" style="font-style: italic;"&gt;_K_, _DK_, _CK_, _R_, _DR_, _CR_, _CASCAD_, _METHOD_, _NJOIN_, and _LOCAL_.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 5px; margin-bottom: 1.4em; font-style: normal; font-size: 13px; line-height: 1.25em; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; text-align: left; color: #000000;"&gt;The minimum value is 2 or 3, depending on the operating system. The maximum value is 8. The default value is 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DD&gt;&lt;/DL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 21:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Nearest-neighbor-with-Proc-Modeclus/m-p/24794#M869</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-06T21:28:41Z</dc:date>
    </item>
    <item>
      <title>Nearest neighbor with Proc Modeclus</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Nearest-neighbor-with-Proc-Modeclus/m-p/24795#M870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I think I found the problem.&amp;nbsp; To define a length for the output, you have to define an ID variable.&amp;nbsp; I defined the length of the ID variable in the data step just to make sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data in1;&lt;/P&gt;&lt;P&gt;set in1;&lt;/P&gt;&lt;P&gt;idv=_n_;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿﻿ods _all_ close; &lt;/P&gt;&lt;P&gt;proc modelus data=in1 dk=11 neighbor;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;var xpos ypos; &lt;/P&gt;&lt;P&gt;id idv;&lt;/P&gt;&lt;P&gt;ods output test1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help Art.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 22:06:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Nearest-neighbor-with-Proc-Modeclus/m-p/24795#M870</guid>
      <dc:creator>Samryn</dc:creator>
      <dc:date>2011-10-06T22:06:13Z</dc:date>
    </item>
  </channel>
</rss>

