Skip to content

spStack

Bayesian Geostatistics Using Predictive Stacking

v1.1.3 · Mar 8, 2026 · GPL-3

Description

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.

Downloads

861

Last 30 days

4184th

1.2K

Last 90 days

3K

Last year

Trend: +310% (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 17, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-release-linux-x86_64

examples

Running examples in ‘spStack-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get_stacking_weights
> ### Title: Optimal stacking weights
> ### Aliases: get_stacking_weights
> 
> ##
...[truncated]...
7::S7_dispatch()
  9.             └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...)
 10.               └─cli::cli_abort("Package {.pkg ECOSolveR} is required but not installed.")
 11.                 └─rlang::abort(...)
Execution halted
ERROR r-release-windows-x86_64

examples

Running examples in 'spStack-Ex.R' failed
The error most likely occurred in:

> ### Name: get_stacking_weights
> ### Title: Optimal stacking weights
> ### Aliases: get_stacking_weights
> 
> ### ** Examples
> 
> set.seed(1234)
> data(simGaussian)
> da
...[truncated]...
7::S7_dispatch()
  9.             └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...)
 10.               └─cli::cli_abort("Package {.pkg ECOSolveR} is required but not installed.")
 11.                 └─rlang::abort(...)
Execution halted

Dependency Network

Dependencies Reverse dependencies CVXR future future.apply ggplot2 loo MBA rstudioapi spStack

Version History

new 1.1.3 Mar 10, 2026
updated 1.1.3 ← 1.1.2 diff Mar 7, 2026
updated 1.1.2 ← 1.1.1 diff Oct 3, 2025
updated 1.1.1 ← 1.1.0 diff Jul 14, 2025
updated 1.1.0 ← 1.0.1 diff Jul 11, 2025
updated 1.0.1 ← 1.0.0 diff Oct 7, 2024
new 1.0.0 Oct 2, 2024