You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before estimating a model, the `ICr()` function can be applied to determine the number of factors. It computes 3 information criteria proposed in Bai and NG (2002)^[Bai, J., Ng, S. (2002). Determining the Number of Factors in Approximate Factor Models. *Econometrica, 70*(1), 191-221. <doi:10.1111/1468-0262.00273>], whereby the second criteria generally suggests the most parsimonious model.
63
63
64
64
```{r}
65
-
ic = ICr(BM14_M_diff)
65
+
ic <- ICr(BM14_M_diff)
66
66
print(ic)
67
67
plot(ic)
68
68
```
@@ -88,7 +88,7 @@ Estimation can then simply be done using the `DFM()` function with parameters `r
88
88
89
89
```{r}
90
90
# Estimating the model with 4 factors and 3 lags using BM14's EM algorithm
91
-
model1 = DFM(BM14_M_diff, r = 4, p = 3)
91
+
model1 <- DFM(BM14_M_diff, r = 4, p = 3)
92
92
print(model1)
93
93
plot(model1)
94
94
```
@@ -134,7 +134,7 @@ DFM forecasts can be obtained with the `predict()` method, which dynamically for
*dfms*currently provides no specific adjustments for data at different frequencies. An algorithm that accommodates monthly and quarterly series is planned for summer 2023. In the meantime, users may choose to block the data (creating multiple quarterly series from a monthly series, and duplicating quarterly series to maintain equal representation).
159
+
Since v0.3.0 *dfms*allows monthly and quarterly mixed frequency estimation following Mariano & Murasawa (2003) and Banbura & Modugno (2014). Quarterly variables should be to the right of the monthly variables in the data matrix and need to be indicated using the `quarterly.vars` argument. Quarterly observations should be provided every 3rd period.
160
160
161
161
<!--
162
162
The baseline algorithm of BM14, being designed for arbitrary patterns of missing data, allows lower frequency series to be included in the estimation. The problem here is that series at lower frequency contain many missing values, which effectively lets these series have less weight in the estimation.
@@ -170,12 +170,12 @@ In the absence of such adjustments to the algorithm, or other methods of interpo
0 commit comments