## How to decide the number of true clusters using kth nearest neighbor clustering?

Solved
Occasional Contributor
Posts: 8

# How to decide the number of true clusters using kth nearest neighbor clustering?

I used  proc modeclus code with m=1 and k=2 to 10 by1 that is with different values of k but I could not decide which solution was the best.

Accepted Solutions
Solution
‎02-21-2016 01:55 AM
SAS Employee
Posts: 51

## Re: How to decide the number of true clusters using kth nearest neighbor clustering?

Hello,

PROC MODECLUS has a (approximate) nonparametric test for the number of clusters.

SAS/STAT 14.1 User's Guide

The MODECLUS Procedure
Details tab: Significance Tests
http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_modeclus_det...

Examples tab: Example 78.3 Cluster Analysis with Significance Tests
http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_modeclus_exa...

Introduction to Clustering Procedures

The last few paragraphs of the latter page deal with nonparametric clustering (and more in particular PROC MODECLUS).

It may be worthwhile to determine the number of clusters by using multiple methods and seeing if they agree.

Good luck,

Koen

All Replies
Solution
‎02-21-2016 01:55 AM
SAS Employee
Posts: 51

## Re: How to decide the number of true clusters using kth nearest neighbor clustering?

Hello,

PROC MODECLUS has a (approximate) nonparametric test for the number of clusters.

SAS/STAT 14.1 User's Guide

The MODECLUS Procedure
Details tab: Significance Tests
http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_modeclus_det...

Examples tab: Example 78.3 Cluster Analysis with Significance Tests
http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_modeclus_exa...

Introduction to Clustering Procedures

The last few paragraphs of the latter page deal with nonparametric clustering (and more in particular PROC MODECLUS).

It may be worthwhile to determine the number of clusters by using multiple methods and seeing if they agree.

Good luck,

Koen

Occasional Contributor
Posts: 8

## Re: How to decide the number of true clusters using kth nearest neighbor clustering?

Thank you. How to fix appropriate radius(r) for the significance test in Kth nearest neighbor?
☑ This topic is solved.