A dynamic factor model approach to incorporate Big Data in state space models for official statistics
This repository contains the R codes and dataset for the estimation of the high-dimensional state space model proposed in the paper "A dynamic factor model approach to incorporate Big Data in state space models for official statistics" by Caterina Schiavoni, Franz Palm, Stephan Smeekes and Jan van den Brakel. Each R script can be employed to estimate the different models discussed in the paper. Namely,
- The script LFS_model.R contains the function that estimates the Labour Force Model by using the Labour Force series as unique observed series.
- The script LFS_model_with_CC.R contains the function that estimates the Labour Force Model augmented with the auxiliary series of claimant counts.
- The script LFS_model_with_GT.R contains the function that estimates the Labour Force Model augmented with the auxiliary series of Google Trends.
- The script LFS_model_with_CC_and_GT.R contains the function that estimates the Labour Force Model augmented with both auxiliary series of claimant counts and Google Trends.
- The script LFS_model_with_GT_cycle.R contains the function that estimates the Labour Force Model augmented with the auxiliary series of Google Trends, while modeling the cycle/seasonality of the Google Trends' factors.
- The script LFS_model_with_GT_lags.R contains the function that estimates the Labour Force Model augmented with the auxiliary series of Google Trends, while including the lags of the Google Trends' factors in the model.