Skip to content

I employ a text-based uncertainty indicator within a Bayesian VAR framework to conduct robust structural macroeconomic forecasting.

Notifications You must be signed in to change notification settings

RenatoVassallo/structural_forecast_BVAR

Repository files navigation

structural_forecast_BVAR

User Guide for "Structural macroeconomic forecasting using a text-based measure of policy uncertainty" Last version: June 08, 2023

Contact: Renato Vassallo | renato.vassallo@bse.eu Barcelona School of Economics

System Requirements This system is tested compatible MATLAB R2022a/b.

  1. "data" and "functions"

It is important at the beginning to add to the path of the working directory the folders "data" and "functions", which contain the database used for the estimation; as well as useful functions that serve as inputs into the generated code routines.

The package contains three main m files that are described below.

  1. bvar_estimation_irf

Contains the routine for estimation, computation of impulse responses and generation of graphs with the posterior distribution of the parameters.

Estimates a Bayesian VAR model with independent Normal-Wishart Priors. The Gibbs Sampling algorithm performs 40,000 simulations and discards the first 30,000 (burn-in).

  1. bvar_uncond_forecast

Contains the code to perform an unconditional forecast 12 periods ahead. The routine was modified to estimate the parameters with information up to 2019, but the forecast is made using March 2023 as the last observed point.

  1. bvar_cond_forecast

Make a structural forecast 5 periods ahead, where a fixed path is assumed for the first variable of the VAR (EPU). The routine includes the generation of Fan Charts for both the unconditional and structural forecast.

About

I employ a text-based uncertainty indicator within a Bayesian VAR framework to conduct robust structural macroeconomic forecasting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages