spmodel
spmodel: Spatial Statistical Modeling and Prediction in R
Spatial regression in R, adding block kriging and then tuning the numerics underneath it
◆Recent moves
- 2mo ago
Tighter optimiser tolerance to avoid local maxima
The default Nelder-Mead relative stopping tolerance tightens from 1e-4 to 1e-6 across `splm()`, `spglm()`, `spautor()`, `spgautor()` and `splmRF()`, to reduce convergence on a local rather than global maximum. It can change previously fitted models, and the release documents `control = list(reltol = 1e-4)` as the way to reproduce the old fit. Prediction with many unseen random effect or partition factor levels also gets faster.
View source ↗ - 6mo ago
Empirical autocovariance function and better block kriging accuracy
Adds `eacf()` for the empirical autocovariance function and raises the default block prediction `size` from 1000 to 4000, trading some computation for a more accurate kriging approximation. It also fixes `predict()` and `augment()` returning `NA` when a Matern covariance was used and a `newdata` location exactly matched a fitting location.
View source ↗ - 9mo ago
Cloud semivariogram doubling fixed; geometry warnings added
Fixes a cloud semivariogram bug that incorrectly doubled the semivariance — a wrong-answer defect rather than a crash. New warnings surface two silent geometry assumptions: when non-POINT geometries are converted via `sf::st_centroid()`, and when distances are computed in a geographic rather than projected coordinate system.
View source ↗ - 1y ago
Block kriging for areal averages and their uncertainty
⚡ SPARKBlock prediction, or block kriging, arrives — estimating averages and their uncertainties over a geographic region rather than at points. Later releases refine its accuracy and efficiency rather than replacing it, and a documentation bug in the restricted log likelihood's fixed-effects log determinant is corrected in the same release.
View source ↗ - 1y ago
Robust semivariogram and new covariance types for areal models
Adds a robust semivariogram option to `esv()` and the `"none"` and `"ie"` spatial covariance types to the areal model functions, extending choices already available elsewhere in the package. Level curve plots get a fixed aspect ratio and a corrected title when the fitted model is isotropic.
View source ↗ - 1y ago
Range constraint option and redefined covariance type names
Adds `range_constrain` to `splm()` and `spglm()` for numerical stability, defaulting to off, and reworks what `"none"` and `"ie"` covariance types mean — `"none"` from v0.8.0 and earlier now corresponds to `"ie"`, a redefinition that changes model specifications written against the old naming.
View source ↗