Skip to content

spsurvey

Spatial Sampling Design and Analysis

v5.6.0 · Sep 29, 2025 · GPL (>= 3)

Description

A design-based approach to statistical inference, with a focus on spatial data. Spatially balanced samples are selected using the Generalized Random Tessellation Stratified (GRTS) algorithm. The GRTS algorithm can be applied to finite resources (point geometries) and infinite resources (linear / linestring and areal / polygon geometries) and flexibly accommodates a diverse set of sampling design features, including stratification, unequal inclusion probabilities, proportional (to size) inclusion probabilities, legacy (historical) sites, a minimum distance between sites, and two options for replacement sites (reverse hierarchical order and nearest neighbor). Data are analyzed using a wide range of analysis functions that perform categorical variable analysis, continuous variable analysis, attributable risk analysis, risk difference analysis, relative risk analysis, change analysis, and trend analysis. spsurvey can also be used to summarize objects, visualize objects, select samples that are not spatially balanced, select panel samples, measure the amount of spatial balance in a sample, adjust design weights, and more. For additional details, see Dumelle et al. (2023) <doi:10.18637/jss.v105.i03>.

Downloads

759

Last 30 days

4753rd

2.7K

Last 90 days

18.6K

Last year

Trend: -22.7% (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 (3)

imports

suggests

Dependency Network

Dependencies Reverse dependencies sf survey boot crossdes deldir lme4 MASS sampling units ARUtools MBHdesign secr spsurvey

Version History

new 5.6.0 Mar 10, 2026
updated 5.6.0 ← 5.5.1 diff Sep 29, 2025
updated 5.5.1 ← 5.5.0 diff Jan 8, 2024
updated 5.5.0 ← 5.4.1 diff May 16, 2023
updated 5.4.1 ← 5.4.0 diff Jan 15, 2023
updated 5.4.0 ← 5.3.0 diff Nov 21, 2022
updated 5.3.0 ← 5.2.0 diff Feb 24, 2022
updated 5.2.0 ← 5.1.0 diff Jan 23, 2022
updated 5.1.0 ← 5.0.1 diff Dec 14, 2021
updated 5.0.1 ← 5.0.0 diff Oct 19, 2021
updated 5.0.0 ← 4.1.4 diff Oct 17, 2021
updated 4.1.4 ← 4.1.3 diff Sep 17, 2020
updated 4.1.3 ← 4.1.2 diff Jun 17, 2020
updated 4.1.2 ← 4.1.1 diff Mar 31, 2020
updated 4.1.1 ← 4.1.0 diff Dec 17, 2019
updated 4.1.0 ← 4.0.0 diff Aug 29, 2019
updated 4.0.0 ← 3.4 diff Apr 4, 2019
updated 3.4 ← 3.3 diff Jun 13, 2018
updated 3.3 ← 3.2 diff Aug 18, 2016
updated 3.2 ← 3.1 diff Aug 16, 2016