Rodrigo Mariscal
  • Home
  • About
  • Posts
  • Code

On this page

  • R code
    • Hodrick-Prescott Filter with Tail Correction
  • MATLAB / Dynare
    • Clarida, Galí, and Gertler (2000) replication
  • Data
    • GVAR Database, 2013 Vintage

Code

Code, replication files and data for applied macroeconomic analysis. Each item links to its source.


R code

Hodrick-Prescott Filter with Tail Correction

R function that applies the Hodrick-Prescott filter with a tail correction, reducing the end-of-sample bias of the standard filter. This matters most for trend and output-gap estimates in the most recent quarters, which are the ones policy decisions rely on.

View code

MATLAB / Dynare

Clarida, Galí, and Gertler (2000) replication

Dynare replication of the model in Clarida, Galí, and Gertler’s “Monetary Policy Rules and Macroeconomic Stability: Evidence and Some Theory,” published in the Quarterly Journal of Economics. A starting point for simulating how the interest-rate response to inflation determines macroeconomic stability.

View code

Data

GVAR Database, 2013 Vintage

Quarterly macroeconomic and financial data for the Global VAR model, 1979Q1–2013Q1, prepared with Ambrogio Cesa-Bianchi and Alessandro Rebucci at the Inter-American Development Bank. It is the vintage included in the GVAR Toolbox 2.0.

View data

The views expressed here are my own and do not represent those of Mexico’s Ministry of Finance or any other institution. All content is based on publicly available information.