spmodel
Spatial Statistical Modeling and Prediction
Description
Fit, summarize, and predict for a variety of spatial statistical models applied to point-referenced and areal (lattice) data. Parameters are estimated using various methods. Additional modeling features include anisotropy, non-spatial random effects, partition factors, big data approaches, and more. Model-fit statistics are used to summarize, visualize, and compare models. Predictions at unobserved locations are readily obtainable. For additional details, see Dumelle et al. (2023) <doi:10.1371/journal.pone.0282524>.
Downloads
703
Last 30 days
4499th
2.2K
Last 90 days
12K
Last year
Trend: +4% (30d vs prior 30d)
12
Last 30 days
52
Last 90 days
233
Last year
Trend: -66.7% (30d vs prior 30d)
CRAN Check Status
Show all 13 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 | ERROR |
| r-devel-linux-x86_64-fedora-gcc | ERROR |
| 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 details (4 non-OK)
examples
Running examples in ‘spmodel-Ex.R’ failed
The error most likely occurred in:
> ### Name: augment.spmodel
> ### Title: Augment data with information from fitted model objects
> ### Aliases: augment.spmodel augment.splm augment.spautor augment.spglm
> ### augment.spgautor
>
> ### ** Examples
>
> spmod <- splm(z ~ water + tarp,
+ data = caribou,
+ spcov_type = "exponential", xcoord = x, ycoord = y
+ )
> augment(spmod)
# A tibble: 30 × 10
z water tarp x y .fitted .resid .hat .cooksd .std.resid
<dbl> <fct> <fct> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 2.42 Y clear 1 6 1.97 0.454 0.116 0.209 2.52
2 2.44 Y shade 2 6 2.25 0.190 0.137 0.0465 1.08
3 1.81 Y none 3 6 2.05 -0.237 0.137 0.0756 -1.38
4 1.97 N clear 4 6 2.05 -0.0842 0.174 0.00213 -0.201
5 2.38 N shade 5 6 2.34 0.0402 0.153 0.0158 0.591
6 2.22 Y none 1 5
...[truncated]...
5.82 7.10 0.00337 0.00164 -0.696 (817738.8 1080571)
2 20.2 5.82 14.3 0.00260 0.00193 0.859 (914593.6 1295545)
3 16.8 5.82 11.0 0.00262 0.000398 0.389 (359574.1 1178228)
4 16.2 5.82 10.4 0.00242 0.000365 0.388 (265331.9 1239089)
5 7.86 5.82 2.03 0.00205 0.00882 -2.07 (304528.8 1453636)
6 15.4 5.82 9.53 0.00204 0.000238 0.341 (162932.8 1451625)
7 0.986 5.82 -4.84 0.00383 0.000977 -0.504 (-1437776 1568022)
8 0.425 5.82 -5.40 0.0136 0.00574 -0.647 (-1572878 1125529)
9 3.58 5.82 -2.24 0.00669 0.0000147 -0.0467 (-1282009 1204889)
10 2.38 5.82 -3.44 0.0122 0.0000121 -0.0313 (-1972775 1464991)
# ℹ 187 more rows
> augment(spmod_sulf, newdata = sulfate_preds)
OMP: Warning #96: Cannot form a team with 24 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
re-building of vignette outputs
Error(s) in re-building vignettes: --- re-building ‘introduction.Rmd’ using rmarkdown OMP: Warning #96: Cannot form a team with 24 threads, using 2 instead. OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
examples
Running examples in ‘spmodel-Ex.R’ failed
The error most likely occurred in:
> ### Name: augment.spmodel
> ### Title: Augment data with information from fitted model objects
> ### Aliases: augment.spmodel augment.splm augment.spautor augment.spglm
> ### augment.spgautor
>
> ### ** Examples
>
> spmod <- splm(z ~ water + tarp,
+ data = caribou,
+ spcov_type = "exponential", xcoord = x, ycoord = y
+ )
> augment(spmod)
# A tibble: 30 × 10
z water tarp x y .fitted .resid .hat .cooksd .std.resid
<dbl> <fct> <fct> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 2.42 Y clear 1 6 1.97 0.454 0.116 0.209 2.52
2 2.44 Y shade 2 6 2.25 0.190 0.137 0.0465 1.08
3 1.81 Y none 3 6 2.05 -0.237 0.137 0.0756 -1.38
4 1.97 N clear 4 6 2.05 -0.0842 0.174 0.00213 -0.201
5 2.38 N shade 5 6 2.34 0.0402 0.153 0.0158 0.591
6 2.22 Y none 1 5
...[truncated]...
d CRS: NAD83 / Conus Albers
# A tibble: 197 × 7
sulfate .fitted .resid .hat .cooksd .std.resid geometry
* <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <POINT [m]>
1 12.9 5.82 7.10 0.00337 0.00164 -0.696 (817738.8 1080571)
2 20.2 5.82 14.3 0.00260 0.00193 0.859 (914593.6 1295545)
3 16.8 5.82 11.0 0.00262 0.000398 0.389 (359574.1 1178228)
4 16.2 5.82 10.4 0.00242 0.000365 0.388 (265331.9 1239089)
5 7.86 5.82 2.03 0.00205 0.00882 -2.07 (304528.8 1453636)
6 15.4 5.82 9.53 0.00204 0.000238 0.341 (162932.8 1451625)
7 0.986 5.82 -4.84 0.00383 0.000977 -0.504 (-1437776 1568022)
8 0.425 5.82 -5.40 0.0136 0.00574 -0.647 (-1572878 1125529)
9 3.58 5.82 -2.24 0.00669 0.0000147 -0.0467 (-1282009 1204889)
10 2.38 5.82 -3.44 0.0122 0.0000121 -0.0313 (-1972775 1464991)
# ℹ 187 more rows
> augment(spmod_sulf, newdata = sulfate_preds)
re-building of vignette outputs
Error(s) in re-building vignettes: --- re-building ‘introduction.Rmd’ using rmarkdown
Check History
ERROR 9 OK · 3 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Mar 10, 2026
examples
Running examples in ‘spmodel-Ex.R’ failed The error most likely occurred in: > ### Name: augment.spmodel > ### Title: Augment data with information from fitted model objects > ### Aliases: augment.spmodel augment.splm augment.spautor augment.spglm > ...[truncated]... augment(spmod_sulf, newdata = sulfate_preds) OMP: Warning #96: Cannot form a team with 24 threads, using 2 instead. OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
examples
Running examples in ‘spmodel-Ex.R’ failed The error most likely occurred in: > ### Name: augment.spmodel > ### Title: Augment data with information from fitted model objects > ### Aliases: augment.spmodel augment.splm augment.spautor augment.spglm > ...[truncated]... 00584 -0.646 (-1572878 1125529) 9 3.58 5.92 -2.34 0.00673 0.0000148 -0.0467 (-1282009 1204889) 10 2.38 5.92 -3.54 0.0123 0.0000139 -0.0335 (-1972775 1464991) # ℹ 187 more rows > augment(spmod_sulf, newdata = sulfate_preds)
installed package size
installed size is 5.8Mb
sub-directories of 1Mb or more:
R 2.0Mb
data 1.7Mb
doc 1.5Mb
installed package size
installed size is 5.9Mb
sub-directories of 1Mb or more:
R 2.0Mb
data 1.8Mb
doc 1.5Mb
installed package size
installed size is 5.0Mb
sub-directories of 1Mb or more:
R 1.2Mb
data 1.7Mb
doc 1.5Mb