sppt

Spatial point pattern test for areal data.

sppt compares spatial distributions of events aggregated to areal units, such as crimes counted by census tract.

Installation

install.packages("sppt")

Example

library(sppt)

res <- sppt(vancouver_ct, group_col = "id",
            count_col = c("BNER2003", "BNER2025"), seed = 42)
summary(res)
sppt_map(res, "pvalue", legend_position = "right")

long <- sppt_longitudinal(vancouver_ct, group_col = "id",
                          count_col = paste0("BNER", 2003:2025), seed = 42)

See vignette("sppt") and vignette("sppt_longitudinal").

References

Andresen, M.A. (2009). Testing for similarity in area-based spatial patterns: A nonparametric Monte Carlo approach. Applied Geography, 29(3), 333-345. https://doi.org/10.1016/j.apgeog.2008.12.004

Andresen, M.A. (2016). An area-based nonparametric spatial point pattern test: The test, its applications, and the future. Methodological Innovations, 9, Article 12. https://doi.org/10.1177/2059799116630659

Andresen, M.A. (2026). Testing longitudinal change in spatial distributions and patterns: An extension of the spatial point pattern test. Annals of the American Association of Geographers, in press.