Package: spStack 1.1.3

Soumyakanti Pan

spStack: Bayesian Geostatistics Using Predictive Stacking

Fits Bayesian hierarchical spatial and spatial-temporal process models for point-referenced Gaussian, Poisson, binomial, and binary data using stacking of predictive densities. It involves sampling from analytically available posterior distributions conditional upon candidate values of the spatial process parameters and, subsequently assimilate inference from these individual posterior distributions using Bayesian predictive stacking. Our algorithm is highly parallelizable and hence, much faster than traditional Markov chain Monte Carlo algorithms while delivering competitive predictive performance. See Zhang, Tang, and Banerjee (2025) <doi:10.1080/01621459.2025.2566449>, and, Pan, Zhang, Bradley, and Banerjee (2025) <doi:10.1214/25-BA1582> for details.

Authors:Soumyakanti Pan [aut, cre], Sudipto Banerjee [aut]

spStack_1.1.3.tar.gz
spStack_1.1.3.zip(r-4.7-x86_64)spStack_1.1.3.zip(r-4.7-arm64)spStack_1.1.3.zip(r-4.6-x86_64)spStack_1.1.3.zip(r-4.6-arm64)
spStack_1.1.3.tar.gz(r-4.7-arm64)spStack_1.1.3.tar.gz(r-4.7-x86_64)spStack_1.1.3.tar.gz(r-4.6-arm64)spStack_1.1.3.tar.gz(r-4.6-x86_64)
spStack_1.1.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
spStack/json (API)

# Install 'spStack' in R:
install.packages('spStack', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/span-18/spstack-dev/issues

Pkgdown/docs site:https://span-18.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:
  • sim_stvcPoisson - Synthetic point-referenced spatial-temporal Poisson count data simulated using spatially-temporally varying coefficients
  • simBinary - Synthetic point-referenced binary data
  • simBinom - Synthetic point-referenced binomial count data
  • simGaussian - Synthetic point-referenced Gaussian data
  • simPoisson - Synthetic point-referenced Poisson count data

On CRAN:

Conda:

openblascpp

3.80 score 25 scripts 411 downloads 18 exports 53 dependencies

Last updated from:bc3f2d6314. Checks:10 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK176
linux-devel-x86_64OK195
source / vignettesOK263
linux-release-arm64OK177
linux-release-x86_64OK233
windows-devel-arm64OK257
windows-devel-x86_64OK218
windows-release-arm64OK258
windows-release-x86_64OK153
wasm-releaseOK157

Exports:candidateModelscholUpdateDelcholUpdateDelBlockcholUpdateRankOneget_stacking_weightsiDistposteriorPredictrecoverGLMscalesim_spDataspGLMexactspGLMstackspLMexactspLMstackstackedSamplerstvcGLMexactstvcGLMstacksurfaceplotsurfaceplot2

Dependencies:abindbackportsBHcheckmateclarabelclicodetoolscpp11CVXRdigestdistributionalfarverfuturefuture.applygenericsggplot2globalsgluegmpgtablehighsisobandlabelinglatticelifecyclelistenvloomagrittrMatrixmatrixStatsMBAnumDerivosqpparallellypillarpkgconfigposteriorR6RColorBrewerRcppRcppEigenrlangrstudioapiS7scalesscsslamtensorAtibbleutf8vctrsviridisLitewithr

Posterior Predictive Inference
Prediction in spatial linear model | Prediction in spatial generalized linear model | Prediction in spatially-temporally varying coefficients model

Last update: 2026-03-08
Started: 2025-07-12

Spatial Regression Models
Bayesian Gaussian spatial regression models | Using fixed hyperparameters | Leave-one-out predictive densities using PSIS | Using predictive stacking | Analyzing samples from the stacked posterior | Analysis of spatial non-Gaussian data | Spatial Poisson count data | Under fixed hyperparameters | Posterior recovery of scale parameters | Sampling from stacked posterior | Spatial binomial count data | Spatial binary data | References

Last update: 2026-03-08
Started: 2025-07-12

Spatial-Temporal Regression Models
Bayesian non-Gaussian spatially-temporally varying coefficient models | Formula for varying coefficients model | Using fixed hyperparameters | Independent processes | Independent shared processes | Multivariate processes | Using predictive stacking

Last update: 2026-03-08
Started: 2025-07-12

spStack: Bayesian Geostatistics Using Predictive Stacking
Bayesian Gaussian spatial regression models | Bayesian non-Gaussian spatial regression models | Additional functionalities | References

Last update: 2026-03-08
Started: 2024-10-04

Technical Overview
Introduction | Bayesian Gaussian spatial regression models | Bayesian non-Gaussian spatial regression models | Bayesian non-Gaussian spatial-temporal regression model | Predictive stacking | References

Last update: 2025-07-12
Started: 2025-07-12

Readme and manuals