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.
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.
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.