Package: BSTFA
Title: Bayesian Spatio-Temporal Factor Analysis Model
Description: 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>.
Version: 0.1.0
Authors@R: 
    c(
    	person("Adam", "Simpson", , "adamiser810@gmail.com", role = c("aut")),
	person("Candace", "Berrett", email="cberrett@stat.byu.edu", role=c("aut","cre"), comment=c(ORCID="0000-0003-4721-3065"))
     )
License: GPL (>= 2)
Encoding: UTF-8
RoxygenNote: 7.3.2
VignetteBuilder: knitr
Depends: R (>= 3.5)
LinkingTo: Rcpp, RcppArmadillo
LazyData: true
LazyDataCompression: xz
Imports: MASS, RColorBrewer, ggplot2, ggpubr, mgcv, MCMCpack, coda,
        npreg, matrixcalc, scatterplot3d, sf, Rcpp, lubridate, Matrix,
        stats, methods, RcppArmadillo
Suggests: knitr, rmarkdown, utils, devtools, kableExtra, bookdown,
        magick, maps, loo
NeedsCompilation: yes
Packaged: 2025-08-22 18:27:39 UTC; cberrett
Author: Adam Simpson [aut],
  Candace Berrett [aut, cre] (ORCID:
    <https://orcid.org/0000-0003-4721-3065>)
Maintainer: Candace Berrett <cberrett@stat.byu.edu>
Repository: CRAN
Date/Publication: 2025-08-28 07:30:13 UTC
Built: R 4.7.0; x86_64-w64-mingw32; 2026-05-29 05:30:18 UTC; windows
Archs: x64
