Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 4.22 KB

readme.md

File metadata and controls

31 lines (19 loc) · 4.22 KB

ABCprecisionsampler: “Precision-based sampling for state space models without measurement error“

This readme file describes the set of replication files for “Precision-based sampling for state space models without measurement error.“ (2023) published in the Journal of Economic Dynamics and Control. https://doi.org/10.1016/j.jedc.2023.104720

The materials provided do not necessarily reflect the views of the Deutsche Bundesbank, or the Eurosystem. All codes are provided on an "as is" basis for research purposes and without warranty. Feel free to use and disseminate the codes as long as proper attribution is given to the original source.

Author

Elmar Mertens (Deutsche Bundesbank) 1

Overview

These replication files provide code to apply the precision-based sampler for state spaces that have not measurement error as described in my paper.

Monte carlo simulations

The code in this repository allows to replicate the Monte Carlo simulations for the following applications described in the paper:

  • Common trend model with VAR(p) dynamics for the gap variables. goPrecisonsamplerCommonTrendCycle.m simulates data for a multivariate common trend model with VAR(p) cycle and applies the precision-based sampler as well as the Durbin-Koopmans (DK) sampler, and collects execution times for various model configurations described in the paper. tabulateTrendVAR.m tabulates the results.
  • Multivariate trend model with VAR(p) dynamics for the gap variables. goPrecisonsamplerTrendCycle.m simulates data for a multivariate trend model with VAR(p) cycle and applies the precision-based sampler as well as the Durbin-Koopmans (DK) sampler, and collects execution times for various model configurations described in the paper. tabulateTrendVAR.m tabulates the results.
  • VAR(p) model with missing observations. goPrecisonsamplerVARmissingvalues.m simulates data for a VAR(p) and applies the precision-based sampler as well as the Durbin-Koopmans (DK) sampler, and collects execution times for various model configurations described in the paper. tabulateVARmissingvalues.m tabulates the results.

Estimation of a common trend model as in Mertens (2016):

Footnotes

  1. Corresponding author: em@elmarmertens.com