BookmarkSubscribeRSS Feed
bbarnali
Calcite | Level 5

Hi All, do you know how to calculate Hopkin Statistic in SAS? Hopkin Statistic tells us whether the dataset has a natural cluster tendency. Thanks in advance 🙂

1 REPLY 1
DougWielenga
SAS Employee

Unfortunately, the Hopkins statistic is not currently produced by any procedure in SAS.

 

PROC MODECLUS performs the saddle test and you can use this to test for unimodality. You need to specify the R= and JOIN options in the MODECLUS statement. METHOD=1 is the most commonly used method and you can find the description here under PROC MODECLUS > Clustering Methods

 

There is an example in the documentation: Cluster Analysis with Significance Tests

 

One way to estimate the number of clusters is to run the analysis over a range of values of the smoothing parameter. If you get the same number of clusters over a range of values, then that is a likely indication of the number of clusters. For a more detailed discussion, take a look in the Details section of the MODECLUS chapter, particularly the 'Density Estimation' and 'Significance Tests' sub sections.

 

For additional discussion and ideas for determining the number of clusters, see "The Number of Clusters".

 

Hope this helps!

Doug

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1004 views
  • 0 likes
  • 2 in conversation