Homepage: https://kwstat.github.io/hopkins

Repository: https://github.com/kwstat/hopkins

Key features

Installation

# Install the released version from CRAN:
install.packages("hopkins")

# Install the development version from GitHub:
install.packages("devtools")
devtools::install_github("kwstat/hopkins")

Usage

library(hopkins)
hopkins(iris[, -5], m=15) # .9952293
hopkins.pval(0.21, 10) # .00466205

Prairie dogs cluster together in burrows, but the burrows are spaced somewhat evenly apart from each other. The Hopkins statistic attempts to assess spatial distribution of points. Also, prairie dogs are cute.