sparseDFM
1.0Estimate Dynamic Factor Models with Sparse Loadings
Overview
Implementation of various estimation methods for dynamic factor models (DFMs) including principal components analysis (PCA) Stock and Watson (2002) doi:10.1198/016214502388618960, 2Stage Giannone et al. (2008) doi:10.1016/j.jmoneco.2008.05.010, expectation-maximisation (EM) Banbura and Modugno (2014) doi:10.1002/jae.2306, and the novel EM-sparse approach for sparse DFMs Mosley et al. (2023) arXiv:2303.11892. Options to use classic multivariate Kalman filter and smoother (KFS) equations from Shumway and Stoffer (1982) doi:10.1111/j.1467-9892.1982.tb00349.x or fast univariate KFS equations from Koopman and Durbin (2000) doi:10.1111/1467-9892.00186, and options for independent and identically distributed (IID) white noise or auto-regressive (AR(1)) idiosyncratic errors. Algorithms coded in 'C++' and linked to R via 'RcppArmadillo'.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE2026-04-2211 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-1810 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-1011 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 98%
- Return-value docs
- 100%
- References docs
- 27%
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 2.5 median / 101 max
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
42 9 exported
Complexity
8.5 avg / 101 max
Call network
42 nodes / 23 edges
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| inflation | data.frame | 135 × 36 | – |
People & History
1 release. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 1.0Latest2026-03-10 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2023-03-23
- Total releases
- 1 / 3 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.3.0
- Bundled data
- 125 KB / 2 files
- Download size
- 410 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet