Nearest Neighbor Methods for Spatial Patterns
Overview
Contains the functions for testing the spatial patterns (of segregation, spatial symmetry, association, disease clustering, species correspondence, and reflexivity) based on nearest neighbor relations, especially using contingency tables such as nearest neighbor contingency tables (Ceyhan (2010) doi:10.1007/s10651-008-0104-x and Ceyhan (2017) doi:10.1016/j.jkss.2016.10.002 and references therein), nearest neighbor symmetry contingency tables (Ceyhan (2014) doi:10.1155/2014/698296), species correspondence contingency tables and reflexivity contingency tables (Ceyhan (2018) doi:10.2436/20.8080.02.72 for two (or higher) dimensional data. The package also contains functions for generating patterns of segregation, association, uniformity in a multi-class setting (Ceyhan (2014) doi:10.1007/s00477-013-0824-9), and various non-random labeling patterns for disease clustering in two dimensional cases (Ceyhan (2014) doi:10.1002/sim.6053), and for visualization of all these patterns for the two dimensional data. The tests are usually (asymptotic) normal z-tests or chi-square tests.
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Elvan Ceyhan <elvanceyhan@gmail.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: person(given = "Elvan",
family = "Ceyhan",
role = c("aut", "cre"),
email = "elvanceyhan@gmail.com")
as necessary.- NOTE11 OK, 2 NOTE2026-06-09
- ERROR11 OK, 1 NOTE, 1 ERROR2026-06-08
- NOTE12 OK, 2 NOTE2026-04-10
- ERROR12 OK, 1 NOTE, 1 ERROR2026-04-09
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 158includes a package overview page
- Examples that run
- 96%139 run in a plain check · 6 hold no code
- Exported functions with examples
- 100%
- Documented parameters
- 94%
- Return-value docs
- 100%
- Help pages citing references
- 70% with a bibliography file
Downloads
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.1.2Latest
- RR 4.3.0 released · 2023-04-21
- 0.1.12022-08-30 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.1.02021-05-10
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-05-10
- Total releases
- 3 / 5 yrs
- License
- GPL-2 OSI
- Bundled data
- 3.9 KB / 1 file
- Download size
- 734 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("nnspat")Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.