The dynamic factor model with mixed monthly/quarterly data is based in Bańbura et al. (2011) and Bańbura and Modugno (2014). We define a stationary
where
Nevertheless, it is allowed that the idiosyncratic disturbances to be serially correlated. Also, I can define a different autoregressive process for each group of series. An AR(1) process for the disturbances is as the following:
The common factors
where
The estimation is achieved by the Expectation-Maximization (EM) algorithm in line with estimating the coefficients for different patterns of missing data. This methodology adapts to the estimation of indicators in countries that have series that their registration started late, so some of these are only available recently.
In the first stage, the EM algorithm fits the pattern of missing values and "fills-in" it. In the second stage, the coefficients are estimated by maximum likelihood (ML), with fewer difficulties since the lack of data has already been solved. The jointly
-
E-step: The expectation of the
$\log$ -likelihood conditional to the data is calculated using the estimation of a previous iteration:$$L(\theta, \theta(j)) = E_{\theta(j)} [l(Y, F; \theta)|\Omega_t]$$ -
M-step: The parameters are estimated through the maximization of the expected
$\log$ -likelihood with respect to$\theta$ :$$\theta(j+1) = arg max L(\theta, \theta(j))$$
I use 129 monthly variables and 1 quarterly variable (GDP Growth) from three principal sources:
- Central Reserve Bank of Peru
- Federal Reserve Bank of St. Louis
- Yahoo Finance
The series are obtained using the library econdata. They are divided in the following groups:
Series
Group
Output 12
Labor Market 21
Juncture 14
Prices 13
Government 11
Balance of Trade 17
Finance 24
Stock Market 6
Quotes 11
-------------------------------
Total 129
To get stationary time series, which is an assumption of the model, I transformate them following this criterias:
1: Levels
2: First Difference to the Levels
3: Logarithm
4: First Difference to the Logarithm
+ : Season-Trend decomposition using LOESS (STL)
Then, all one them are standarized