hopkins.pval | R Documentation |
Calculate the p-value for Hopkins statistic
hopkins.pval(x, n)
x |
Observed value of Hopkins statistic |
n |
Number of events/points sampled. |
Under null hypothesis of spatial randomness, Hopkins statistic has a Beta(m,m) distribution, where 'm' is the number of events/points sampled. This function calculates the p-value for the statistic.
A p-value between 0 and 1.
Kevin Wright
Michael T. Gastner (2005). Spatial distributions: Density-equalizing map projections, facility location, and two-dimensional networks. Ph.D. dissertation, Univ. Michigan (Ann Arbor, 2005). http://hdl.handle.net/2027.42/125368
hopkins.pval(0.21, 10) # .00466205
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.