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 🙂
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
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!
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.