DIFM
Dynamic ICAR Spatiotemporal Factor Models
Description
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)<doi:10.1016/j.spasta.2023.100763>. 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.
Downloads
297
Last 30 days
15793rd
691
Last 90 days
2.5K
Last year
Trend: +67.8% (30d vs prior 30d)
24
Last 30 days
114
Last 90 days
454
Last year
Trend: -40% (30d vs prior 30d)
14
Last 7 days
23
Last 30 days
0
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check History
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 12, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 5, 2026
re-building of vignette outputs
Error(s) in re-building vignettes: --- re-building ‘DIFMvignette.Rmd’ using rmarkdown OMP: Warning #96: Cannot form a team with 24 threads, using 2 instead. OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set). Quitting from DIFMvignette.Rmd:176-202 [unnamed-chunk-4] Execution halted
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
installed package size
installed size is 6.8Mb
sub-directories of 1Mb or more:
libs 6.2Mb
installed package size
installed size is 6.9Mb
sub-directories of 1Mb or more:
libs 6.3Mb
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
whether package can be installed
Installation failed. See 'd:/Rcompile/CRANpkg/local/4.6/DIFM.Rcheck/00install.out' for details.
installed package size
installed size is 6.8Mb
sub-directories of 1Mb or more:
libs 6.2Mb
installed package size
installed size is 6.9Mb
sub-directories of 1Mb or more:
libs 6.3Mb
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
installed package size
installed size is 6.8Mb
sub-directories of 1Mb or more:
libs 6.2Mb
installed package size
installed size is 6.9Mb
sub-directories of 1Mb or more:
libs 6.3Mb
Code & tests
Open call graph →Line coverage
–
Expression
–
Tests / Examples
–
Functions
47 14 exported
Complexity
3.4 avg / 9 max
Call network
47 nodes / 22 edges
Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.
Lowest coverage
Per-function coverage is not measured for this package yet.
Code
Structure
Lines of code
2,475
Files
68
Compiled share
25.8%
Has compiled src
Yes
Language breakdown
API
Exported functions
14
Internal functions
16
Recent export changes
Testing & CI
Has tests
No
Test-to-code ratio
0.00
testthat edition
–
CI present
No
CI type
[]
PR gated
No
Docs
Return-value doc rate
100%
\dontrun example ratio
–
Roxygen coverage
100%
Has pkgdown
No
NEWS present
No
Health & Security signals
Informational signals; not verdicts.
on.exit coverage
–
Unsafe pattern score
0
Dep constraint coverage
16.7%
Secret pattern count
0
Bundled 3rd-party code
2 items
Portability & License
Min R version
2.10
System requirements
–
C++ standard
C++17
License
GPL (>= 2)
License flags
SPDX valid, OSI approved
History
Versions
2
First release
2024-04-12
Latest release
2025-11-11
Avg cadence
578 days
Cold removal rate
–
Dep drift
0
LOC over versions
Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.