convergenceDFM
0.3.2Convergence and Dynamic Factor Models
Overview
Tests convergence in macro-financial panels combining Dynamic Factor Models (DFM) and mean-reverting, discrete-time Ornstein-Uhlenbeck/AR(1) factor processes. Provides: (i) static factor extraction with VAR stability checks, Portmanteau tests and rolling out-of-sample R^2, in the spirit of Stock and Watson (2002) doi:10.1198/073500102317351921 and the Generalized Dynamic Factor Model of Forni, Hallin, Lippi and Reichlin (2000) doi:10.1162/003465300559037; (ii) cointegration analysis a la Johansen (1988) doi:10.1016/0165-1889(88)90041-3; (iii) Bayesian factor-OU/AR(1) estimation with convergence and half-life summaries grounded in Uhlenbeck and Ornstein (1930) doi:10.1103/PhysRev.36.823 and Vasicek (1977) doi:10.1016/0304-405X(77)90016-2, with full Markov chain Monte Carlo convergence diagnostics; (iv) heteroskedasticity-consistent (HC) and, when the suggested 'sandwich' (Zeileis (2004) doi:10.18637/jss.v011.i10) and 'lmtest' packages are available, heteroskedasticity- and autocorrelation- consistent (HAC) robust inference, with a self-contained HC fallback; (v) coupling significance tests based on time-shift / block-bootstrap nulls that preserve marginal dynamics while breaking cross-series dependence; and (vi) optional PLS-based factor preselection (Mevik and Wehrens (2007) doi:10.18637/jss.v018.i02). Functions emphasize reproducibility (explicit seeds throughout) and clear, publication-ready summaries.
Install
Health
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- WARNING2026-06-0812 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
- OK2026-04-2512 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-03-1011 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 44%
- Documented parameters
- 95%
- Return-value docs
- 100%
- References docs
- 4%
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
People & History
2 releases. Pick two to compare their code metrics. R releases are shown for context.
- 0.3.2Latest
- RR 4.6.0 released · 2026-04-24
- 0.1.42026-03-10
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-12-01
- Total releases
- 2 / 1 yrs
- License
- GPL-3 OSI
- Additional repositories
- mc-stan.org
- Minimum R
- ≥ 4.1
- Download size
- 78 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet