Dynamic ICAR Spatiotemporal Factor Models

Bayesian factor models are effective tools for dimension reduction. This is especially applicable to multivariate large-scale datasets. It allows researchers to understand the latent factors of the data which are the linear or non-linear combination of the variables. Dynamic Intrinsic Conditional Autocorrelative Priors (ICAR) Spatiotemporal Factor Models 'DIFM' package provides function to run Markov Chain Monte Carlo (MCMC), evaluation methods and visual plots from Shin and Ferreira (2023). Our method is a class of Bayesian factor model which can account for spatial and temporal correlations. By incorporating these correlations, the model can capture specific behaviors and provide predictions.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("DIFM")

1.0.1 by Hwasoo Shin, a year ago


Browse source code at https://github.com/cran/DIFM


Authors: Hwasoo Shin [aut, cre] , Marco Ferreira [aut]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports Rcpp, Matrix, LaplacesDemon, spdep, gridExtra, sp

Suggests knitr, rmarkdown

Linking to Rcpp, RcppArmadillo


See at CRAN