Calculate the Hopkins' statistic of given data. 'n' can be set to see whether this statistic converges.
Usage
hopkins(data, n, byrow = F, header = F)
Arguments
data
a data frame or a matrix of the sample
n
an integer, the number of points selected from sample space which is also the number of points selected from the given sample(data)
byrow
logical. If FALSE(the default)the variables is taken by columns, otherwise the variables is taken by rows.
header
logical. If FALSE(the default) the first column(or row) will be deleted in the calculation
Value
the number of Hopkins' statistic will be shown in the CW.
Details
Sample data must be preprocessed into dataframe or matrix form before given as the value of parameter "data".
References
Lawson, R.G. and Jurs, P.C.(1990) New index for clustering tendency and its application to chemical problems. Journal of Chemical Information and Computer Sciences. (Journal of Chemical Information and Computer Sciences, 1990, 30(1):36-41)