Skip to content

waywiser

Ergonomic Methods for Assessing Spatial Models

v0.6.3 · Apr 15, 2025 · MIT + file LICENSE

Description

Assessing predictive models of spatial data can be challenging, both because these models are typically built for extrapolating outside the original region represented by training data and due to potential spatially structured errors, with "hot spots" of higher than expected error clustered geographically due to spatial structure in the underlying data. Methods are provided for assessing models fit to spatial data, including approaches for measuring the spatial structure of model errors, assessing model predictions at multiple spatial scales, and evaluating where predictions can be made safely. Methods are particularly useful for models fit using the 'tidymodels' framework. Methods include Moran's I ('Moran' (1950) <doi:10.2307/2332142>), Geary's C ('Geary' (1954) <doi:10.2307/2986645>), Getis-Ord's G ('Ord' and 'Getis' (1995) <doi:10.1111/j.1538-4632.1995.tb00912.x>), agreement coefficients from 'Ji' and Gallo (2006) (<doi: 10.14358/PERS.72.7.823>), agreement metrics from 'Willmott' (1981) (<doi: 10.1080/02723646.1981.10642213>) and 'Willmott' 'et' 'al'. (2012) (<doi: 10.1002/joc.2419>), an implementation of the area of applicability methodology from 'Meyer' and 'Pebesma' (2021) (<doi:10.1111/2041-210X.13650>), and an implementation of multi-scale assessment as described in 'Riemann' 'et' 'al'. (2010) (<doi:10.1016/j.rse.2010.05.010>).

Downloads

2.6K

Last 30 days

2643rd

8.4K

Last 90 days

14.2K

Last year

Trend: -6.6% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (1)

suggests

Dependency Network

Dependencies Reverse dependencies dplyr fields FNN glue hardhat Matrix purrr rlang sf spdep tibble tidyselect vctrs yardstick sdmTMB waywiser

Version History

new 0.6.3 Mar 10, 2026
updated 0.6.3 ← 0.6.2 diff Apr 15, 2025
updated 0.6.2 ← 0.6.1 diff Mar 2, 2025
updated 0.6.1 ← 0.6.0 diff Feb 16, 2025
updated 0.6.0 ← 0.5.1 diff Jun 26, 2024
updated 0.5.1 ← 0.5.0 diff Oct 30, 2023
updated 0.5.0 ← 0.4.2 diff Oct 15, 2023
updated 0.4.2 ← 0.4.1 diff Jul 19, 2023
updated 0.4.1 ← 0.4.0 diff Jul 2, 2023
updated 0.4.0 ← 0.3.0 diff May 16, 2023
updated 0.3.0 ← 0.2.0 diff Mar 18, 2023
updated 0.2.0 ← 0.1.0 diff Oct 22, 2022
new 0.1.0 Aug 9, 2022