Bayesian Spatio-Temporal Factor Analysis Model
Overview
Implements Bayesian spatio-temporal factor analysis models for multivariate data observed across space and time. The package provides tools for model fitting via Markov chain Monte Carlo (MCMC), spatial and temporal interpolation, and visualization of latent factors and loadings to support inference and exploration of underlying spatio-temporal patterns. Designed for use in environmental, ecological, or public health applications, with support for posterior prediction and uncertainty quantification. Includes functions such as BSTFA() for model fitting and plot_factor() to visualize the latent processes. Functions are based on and extended from methods described in Berrett, et al. (2020) doi:10.1002/env.2609.
Install
Health
- OK13 OK2026-10-15
- NOTE11 OK, 2 NOTE2026-09-12
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
Show 6 earlier changesHide 6 earlier changes
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-04-08
- ERROR13 OK, 1 ERROR2026-04-07
- OK14 OK2026-03-10
Documentation
- Help pages
- 24
- Examples that run
- 100%17 run in a plain check
- Exported functions with examples
- 67%
- Documented parameters
- 92%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Dependencies
Installing BSTFA adds 85 packages (45 with compiled code, 83 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, ggplot2 6.0 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.1.2Latest
- RR 4.6.0 released · 2026-04-24
- 0.1.02025-08-28
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-08-28
- Total releases
- 2 / 1 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.5
- Bundled data
- 3.0 MB / 2 files
- Download size
- 4.7 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("BSTFA")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-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.