Constructs analysis regions from the distribution of the data itself, as an alternative to aggregating onto administrative boundaries that were drawn for unrelated purposes. Seeds and builds Voronoi, Delaunay, hexagonal and square tessellations with reproducible identifiers. Chooses a cell count, by default from a target number of observations per cell, or by scoring a ladder of counts against the spatial structure of the observations. Assigns features to cells and reports for each cell a count, a mean with its standard error and a pooled value pulled toward the mean of the observations in the 8 nearest cells. A design effect can correct the standard errors for autocorrelation within the cells. Projects lon/lat input to a projected coordinate reference system chosen for the extent of the data. Fits geographically weighted regression (its kernels, diagnostics and forward selection follow 'GWmodel'; Lu et al. (2014) <doi:10.1080/10095020.2014.917453>), Bayesian Gaussian process regression (via 'brms', using the Hilbert space approximation of Riutort-Mayol et al. (2023) <doi:10.1007/s11222-022-10167-2>) and random forests (via 'ranger', with the permutation importance of Strobl et al. (2007) <doi:10.1186/1471-2105-8-25>), each behind one S3 class with consistent predict, fitted, residuals and plot methods. Provides spatial cross-validation with random, block, buffered, leave-location-out and nearest-neighbour distance-matched folds (Milà et al. (2022) <doi:10.1111/2041-210X.13851>; Linnenbrink et al. (2024) <doi:10.5194/gmd-17-5897-2024>), forward variable selection, model comparison, prediction onto a regular surface, and the area of applicability of Meyer and Pebesma (2021) <doi:10.1111/2041-210X.13650> to flag where a fitted model extrapolates beyond its training data.
| Version: | 3.0.0 |
| Depends: | R (≥ 4.1.0) |
| Imports: | sf (≥ 1.0), dplyr (≥ 1.0), logger, digest, FNN, stats, methods, utils, parallel |
| Suggests: | sp, GWmodel, ranger, brms (≥ 2.17.0), cmdstanr, loo, tibble, geometry, gstat, ggplot2 (≥ 3.4.0), patchwork, Matrix, nlme, spdep, testthat (≥ 3.1.7), knitr, rmarkdown, units, vctrs, withr |
| Published: | 2026-11-23 |
| DOI: | 10.32614/CRAN.package.spatialkit |
| Author: | Justin Chase [aut, cre, cph] |
| Maintainer: | Justin Chase <jchase.msu at gmail.com> |
| BugReports: | https://github.com/elkronos/gis_modeling_toolkit/issues |
| License: | MIT + file LICENSE |
| URL: | https://elkronos.github.io/gis_modeling_toolkit/, https://github.com/elkronos/gis_modeling_toolkit |
| NeedsCompilation: | no |
| Additional_repositories: | https://stan-dev.r-universe.dev |
| Citation: | spatialkit citation info |
| Materials: | README, NEWS |
| CRAN checks: | spatialkit results |
| Package source: | spatialkit_3.0.0.tar.gz |
| Windows binaries: | r-devel: spatialkit_2.0.0.zip, r-release: spatialkit_3.0.0.zip, r-oldrel: spatialkit_2.0.0.zip |
| macOS binaries: | r-release (arm64): spatialkit_3.0.0.tgz, r-oldrel (arm64): spatialkit_3.0.0.tgz, r-release (x86_64): spatialkit_3.0.0.tgz, r-oldrel (x86_64): spatialkit_3.0.0.tgz |
| Old sources: | spatialkit archive |
Please use the canonical form https://CRAN.R-project.org/package=spatialkit to link to this page.