Gibbs Samplers for Discrete Bayesian Spatiotemporal Models
Overview
Takes Poisson or Binomial discrete spatial data and runs a Gibbs sampler for a variety of Spatiotemporal Conditional Autoregressive (CAR) models. Includes measures to prevent estimate over-smoothing through a restriction of model informativeness for select models. Also provides tools to load output and get median estimates. Implements methods from Besag, York, and Mollié (1991) "Bayesian image restoration, with two applications in spatial statistics" doi:10.1007/BF00116466, Gelfand and Vounatsou (2003) "Proper multivariate conditional autoregressive models for spatial data analysis" doi:10.1093/biostatistics/4.1.11, Quick et al. (2017) "Multivariate spatiotemporal modeling of age-specific stroke mortality" doi:10.1214/17-AOAS1068, and Quick et al. (2021) "Evaluating the informativeness of the Besag-York-Mollié CAR model" doi:10.1016/j.sste.2021.100420.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-05-12
- WARNING12 OK, 1 WARNING2026-05-11
- OK12 OK2026-04-25
Show 3 earlier changesHide 3 earlier changes
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 22includes a package overview page
- Examples that run
- 100%14 run in a plain check (1 of them under a condition)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 5%
- An Introduction to the RSTr Package HTML
- 01: Understanding and Preparing Your Event Data HTML
- 02: Understanding and Preparing Your Adjacency Structure HTML
- 03: The CAR Models HTML
- 04: Generating Estimates: Age-standardization HTML
- 05: Generating Estimates: Reliability and Suppression HTML
- 06: Model Informativeness HTML
- 07: Sample Processing HTML
- 08: Initial Values HTML
- 09: Priors HTML
Show 2 moreHide 2 vignettes
Downloads
Repository
- PRs merged (all time)
- 80%
- Median days to close, 50 most recently updated closed issues
- 9
- Median days to close, 50 most recently updated closed PRs
- 1
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/cehi-code-repos/rstr on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-07-08 · The repository has a site deploy workflow
Dependencies
Code & Tests
Datasets
People & History
Package metadata
- First published
- 2026-01-17
- Total releases
- 3 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.3.0
- Bundled data
- 428 KB / 7 files
- Download size
- 2.5 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("RSTr")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-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.