Skip to content

Commit 116eae7

Browse files
committed
Mention that Factors are assumed to follow a stationary VAR process of order p + add Eli as reviewer.
1 parent a90b7d9 commit 116eae7

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

DESCRIPTION

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@ Version: 0.3.0
33
Title: Dynamic Factor Models
44
Authors@R: c(person("Sebastian", "Krantz", role = c("aut", "cre"), email = "[email protected]"),
55
person("Rytis", "Bagdziunas", role = "aut"),
6-
person("Santtu", "Tikka", role = "rev"))
6+
person("Santtu", "Tikka", role = "rev"),
7+
person("Eli", "Holmes", role = "rev"))
78
Description: Efficient estimation of Dynamic Factor Models using the Expectation Maximization (EM) algorithm
8-
or Two-Step (2S) estimation, supporting datasets with missing data. The estimation options follow advances in the
9-
econometric literature: either running the Kalman Filter and Smoother once with initial values from PCA -
10-
2S estimation as in Doz, Giannone and Reichlin (2011) <doi:10.1016/j.jeconom.2011.02.012> - or via iterated
11-
Kalman Filtering and Smoothing until EM convergence - following Doz, Giannone and Reichlin (2012)
12-
<doi:10.1162/REST_a_00225> - or using the adapted EM algorithm of Banbura and Modugno (2014) <doi:10.1002/jae.2306>,
13-
allowing arbitrary patterns of missing data. The implementation makes heavy use of the 'Armadillo' 'C++' library and
14-
the 'collapse' package, providing for particularly speedy estimation. A comprehensive set of methods supports
15-
interpretation and visualization of the model as well as forecasting. Information criteria to choose the number
16-
of factors are also provided - following Bai and Ng (2002) <doi:10.1111/1468-0262.00273>.
9+
or Two-Step (2S) estimation, supporting datasets with missing data. Factors are assumed to follow a stationary VAR
10+
process of order p. The estimation options follow advances in the econometric literature: either running the Kalman
11+
Filter and Smoother once with initial values from PCA - 2S estimation as in Doz, Giannone and Reichlin (2011)
12+
<doi:10.1016/j.jeconom.2011.02.012> - or via iterated Kalman Filtering and Smoothing until EM convergence - following
13+
Doz, Giannone and Reichlin (2012) <doi:10.1162/REST_a_00225> - or using the adapted EM algorithm of Banbura and
14+
Modugno (2014) <doi:10.1002/jae.2306>, allowing arbitrary patterns of missing data. The implementation makes heavy
15+
use of the 'Armadillo' 'C++' library and the 'collapse' package, providing for particularly speedy estimation.
16+
A comprehensive set of methods supports interpretation and visualization of the model as well as forecasting.
17+
Information criteria to choose the number of factors are also provided - following Bai and Ng (2002)
18+
<doi:10.1111/1468-0262.00273>.
1719
URL: https://sebkrantz.github.io/dfms/
1820
BugReports: https://github.com/SebKrantz/dfms/issues
1921
Depends: R (>= 3.5.0)

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
<!--
1818
The package is fully functional though, and you are very welcome to install it using `remotes::install_github("SebKrantz/dfms")` and give feedback. -->
1919

20-
*dfms* provides efficient estimation of Dynamic Factor Models via the EM Algorithm. Estimation can be done in 3 different ways following:
20+
*dfms* provides efficient estimation of Dynamic Factor Models via the EM Algorithm. Factors are assumed to follow a stationary VAR
21+
process of order `p`. Estimation can be done in 3 different ways following:
2122

2223
- Doz, C., Giannone, D., & Reichlin, L. (2011). A two-step estimator for large approximate dynamic factor models based on Kalman filtering. *Journal of Econometrics, 164*(1), 188-205. <doi:10.1016/j.jeconom.2011.02.012>
2324

@@ -27,7 +28,7 @@ The package is fully functional though, and you are very welcome to install it u
2728

2829
The default is `em.method = "auto"`, which chooses `"BM"` following Banbura & Modugno (2014) with missing data or mixed frequency, and `"DGR"` following Doz, Giannone & Reichlin (2012) otherwise. Using `em.method = "none"` generates Two-Step estimates following Doz, Giannone & Reichlin (2011). This is extremely efficient on bigger datasets. PCA and Two-Step estimates are also reported in EM-estimation. All methods support missing data, but `em.method = "DGR"` does not model them in EM iterations.
2930

30-
The package is stable, but functionality may expand in the future. In particular, mixed-frequency estimation with autoregressive errors is planned for the near future, and generation of the 'news' may be added in the further future.
31+
The package is currently stable, but functionality may expand in the future. In particular, mixed-frequency estimation with autoregressive errors is planned for the near future, and generation of the 'news' may be added in the further future.
3132

3233

3334
### Comparison with Other R Packages
@@ -56,7 +57,7 @@ install.packages('dfms', repos = c('https://sebkrantz.r-universe.dev', 'https://
5657
library(dfms)
5758

5859
# Fit DFM with 6 factors and 3 lags in the transition equation
59-
mod = DFM(diff(BM14_M), r = 6, p = 3)
60+
mod <- DFM(diff(BM14_M), r = 6, p = 3)
6061
```
6162

6263
```
@@ -158,7 +159,7 @@ as.data.frame(mod) |> head()
158159

159160
```r
160161
# Forecasting 20 periods ahead
161-
fc = predict(mod, h = 20)
162+
fc <- predict(mod, h = 20)
162163

163164
# 'dfm_forecast' methods
164165
plot(fc)

0 commit comments

Comments
 (0)