From dfb5a856c487358e784282ed950a46d49f57c584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=B3ra=20Kocsis?= <dora@dynare.org> Date: Tue, 26 Nov 2019 18:29:12 +0100 Subject: [PATCH] bugfix: forecast type option in shock_decomposition. --- src/DynareBison.yy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DynareBison.yy b/src/DynareBison.yy index 47f7917a..1997759c 100644 --- a/src/DynareBison.yy +++ b/src/DynareBison.yy @@ -3221,9 +3221,9 @@ o_posterior_nograph : POSTERIOR_NOGRAPH ; o_shock_decomposition_nograph : NOGRAPH { driver.option_num("no_graph.shock_decomposition", "true"); } o_init_state : INIT_STATE EQUAL INT_NUMBER { driver.option_num("shock_decomp.init_state", $3); }; -o_forecast_type : UNCONDITIONAL +o_forecast_type : FORECAST EQUAL UNCONDITIONAL { driver.option_str("shock_decomp.forecast_type", "unconditional"); } - | CONDITIONAL + | FORECAST EQUAL CONDITIONAL { driver.option_str("shock_decomp.forecast_type", "conditional"); } o_shock_decomposition_presample : PRESAMPLE EQUAL INT_NUMBER { driver.option_num("shock_decomp.presample", $3); }; o_shock_decomposition_forecast : FORECAST EQUAL INT_NUMBER { driver.option_num("shock_decomp.forecast", $3); }; -- GitLab