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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 972 views
  • 0 likes
  • 2 in conversation