spatialAtomizeR
0.2.8Spatial Analysis with Misaligned Data Using Atom-Based Regression Models
Overview
Implements atom-based regression models (ABRM) for analyzing spatially misaligned data. Provides functions for simulating misaligned spatial data, preparing NIMBLE model inputs, running MCMC diagnostics, and providing results. All main functions return S3 objects with print(), summary(), and plot() methods for intuitive result exploration. Methods originally described in Mugglin et al. (2000) doi:10.1080/01621459.2000.10474279, further investigated in Trevisani & Gelfand (2013), and applied in Nethery et al. (2023) doi:10.1101/2023.01.10.23284410.
This is a resubmission (v0.2.7) addressing reviewer comments on package quality,
documentation, and replication material. Changes include:
- Fixed atom ID column renaming to handle both older sf (which produces
ID/ID.1afterraster::intersect()) and newer sf >= 1.0 (which producesID_1/ID_2). Affectedsimulate_misaligned_data()and the case example vignette (#issue number if you have one). - Added
\examples{}blocks to all exported functions; slow MCMC-based functions use\dontrun{}while lightweight functions (e.g.,simulate_misaligned_data(),get_abrm_model(),gen_correlated_spat(), and all S3 methods formisaligned_data) now have fully executable examples - Changed
vcov.abrmexample from\dontrun{}to\donttest{}per CRAN policy for examples that are valid but too slow for routine checking - Fixed
run_abrm()silently writing a PDF to the user's working directory: changed default ofsave_plotsfromTRUEtoFALSE; diagnostic plots are now obtained explicitly viaplot()on the returned object
Show all changes in 0.2.8Hide the rest of the changes in 0.2.8
- Added
plot.misaligned_data()S3 method for spatial data exploration - Added
coef.abrm(),confint.abrm(),fitted.abrm(),waic.abrm(),print.waic_abrm()S3 methods to improve model result inspection without accessing internal object structure directly - Updated vignette to set
eval = TRUEfor all simulated-data (Example 1) code chunks so the vignette executes and displays output during build - Removed redundant
library(nimble)call from vignette (nimble is already loaded as a dependency of spatialAtomizeR) - Fixed man page titles to use title case throughout (e.g., "Print Method for ABRM Objects" instead of "Print method for abrm objects")
Test environments
- local: macOS/Windows/Linux (R 4.4.0)
- GitHub Actions:
- ubuntu-latest (R-release, R-devel)
- windows-latest (R-release)
- macOS-latest (R-release)
- win-builder (R-devel)
- R-hub (ubuntu-gcc-release)
R CMD check results
0 errors ✔ | 0 warnings ✔ | 0 notes ✔
Downstream dependencies
There are currently no downstream dependencies for this package.
Previous submission (v0.2.6)
- Fixed Editor's comments
- Fixed
print()statement causing debug output in console - Fixed unable to use S3 plot() function bug
- Marked 14 internal helper functions as
@keywords internal(no longer exported) - Fixed vignette errors: removed non-existent function parameters and corrected signatures
- Improved S3 method output formatting
- Enhanced documentation with working code examples
- Added vcov() method for variance-covariance matrices
- Fixed coefficient naming for beta_x and beta_y parameters
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 26 (7 internal)includes a package overview page
- Examples that run
- 28%5 run in a plain check · 13 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 45%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 4%
Downloads
Repository
Stars over time
5 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/bellayqian/spatialatomizer on 2026-10-11.
GitHub Pages site last deployed 2026-03-24
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.2.8Latest
- 0.2.7
- 0.2.62026-02-14 · diff ↗ ·
removed 4 exports
dasymetric_mapping, fit_dasymetric_model, run_both_methods, run_sensitivity_analysis - 0.2.52026-02-09 · diff ↗ ·
removed 9 exports
check_mcmc_diagnostics, create_comparison_plots, create_diagnostic_plots, create_sensitivity_summary_plots, create_summary_statistics, prepare_adjacency_matrices, prepare_nimble_inputs, prepare_spatial_bookkeeping, print_convergence_summary - 0.2.4
- 0.2.32025-12-10
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-12-10
- Total releases
- 6 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.0.0
- Download size
- 4.3 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("spatialAtomizeR")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.