hopkins.pval {hopkins} | R Documentation |
Calculate the p-value for Hopkins statistic
Description
Calculate the p-value for Hopkins statistic
Usage
hopkins.pval(x, n)
Arguments
x |
Observed value of Hopkins statistic |
n |
Number of events/points sampled. |
Details
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.
Value
A p-value between 0 and 1.
Author(s)
Kevin Wright
References
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
Examples
hopkins.pval(0.21, 10) # .00466205
[Package hopkins version 1.1 Index]