Learn R Programming

RSTr (version 1.1.4)

Gibbs Samplers for Discrete Bayesian Spatiotemporal Models

Description

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" , Gelfand and Vounatsou (2003) "Proper multivariate conditional autoregressive models for spatial data analysis" , Quick et al. (2017) "Multivariate spatiotemporal modeling of age-specific stroke mortality" , and Quick et al. (2021) "Evaluating the informativeness of the Besag-York-Mollié CAR model" .

Copy Link

Version

Install

install.packages('RSTr')

Version

1.1.4

License

GPL (>= 3)

Maintainer

David DeLara

Last Published

January 31st, 2026

Functions in RSTr (1.1.4)

suppress_estimates

Suppress estimates based on reliability criteria
miheart

Michigan Heart Attack Mortality Data
minsample

Samples Generated for Michigan data
update_model

Update model
split_sample_groups

Split sample groups
mamap

Massachusetts Shapefile
long_to_list_matrix

Generate count data for RSTr object
miadj

Michigan Adjacency Data
standardize_samples

Age-standardize samples
maexample

Massachusetts Heart Attack Mortality Data
add_neighbors

Add neighbors to adjacency information
car

Create CAR model
aggregate_samples

Aggregate samples by non-age group
aggregate_count

Aggregate count arrays
age_standardize

Age-standardize model objects
RSTr-package

tools:::Rd_package_title("RSTr")
load_model

Load model
load_samples

Load MCMC samples
get_medians

Generate medians, credible intervals, and relative precisions
get_estimates

Extract estimates from RSTr model object
minsplit

Age- and Sex-stratified Samples for Michigan data
mishp

Michigan Shapefile