From d40b77526001b9612a961c70b283edc599f4ae23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Fri, 20 Dec 2019 11:57:34 +0100 Subject: [PATCH] =?UTF-8?q?Preprocessor:=20new=20=E2=80=9Cwith=5Fepilogue?= =?UTF-8?q?=E2=80=9D=20option=20and=20related=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref. !1688 --- doc/manual/source/the-model-file.rst | 15 +++++++++++++++ preprocessor | 2 +- tests/shock_decomposition/ls2003_plot.mod | 6 +----- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/doc/manual/source/the-model-file.rst b/doc/manual/source/the-model-file.rst index 99bd927f5..b922f3429 100644 --- a/doc/manual/source/the-model-file.rst +++ b/doc/manual/source/the-model-file.rst @@ -6977,6 +6977,11 @@ Shock Decomposition ``1``, the shock decomposition is computed conditional on the smoothed state variables in period 1. Default: ``0``. + .. option:: with_epilogue + + If set, then also compute the decomposition for variables declared in + the ``epilogue`` block. + *Output* .. matvar:: oo_.shock_decomposition @@ -7134,6 +7139,11 @@ Shock Decomposition integer defines the last observation (equivalent to :opt:`nobs`). Default: not enabled. + .. option:: with_epilogue + + If set, then also compute the decomposition for variables declared in + the ``epilogue`` block. + *Output* .. matvar:: oo_.realtime_shock_decomposition @@ -7376,6 +7386,11 @@ Shock Decomposition Maximum number of rows in the subplot layout of detailed shock decomposition graphs. Note that columns are always 3. Default: 6 + .. option:: with_epilogue + + If set, then also compute the decomposition for variables declared in + the ``epilogue`` block. + .. command:: initial_condition_decomposition [VARIABLE_NAME]...; initial_condition_decomposition (OPTIONS...) [VARIABLE_NAME]...; diff --git a/preprocessor b/preprocessor index 8baec1e0e..5f451ebc9 160000 --- a/preprocessor +++ b/preprocessor @@ -1 +1 @@ -Subproject commit 8baec1e0ec5e06df5e14a96467fe520f5eb6f374 +Subproject commit 5f451ebc9937b0a2a99f927a3f27fc2911b64eb9 diff --git a/tests/shock_decomposition/ls2003_plot.mod b/tests/shock_decomposition/ls2003_plot.mod index af0a05ff8..27bdab3f1 100644 --- a/tests/shock_decomposition/ls2003_plot.mod +++ b/tests/shock_decomposition/ls2003_plot.mod @@ -90,11 +90,9 @@ A e_A; end; options_.initial_date=dates('1989Q4'); % date arbitrarily set for testing purposes -options_.shock_decomp.with_epilogue=true; -shock_decomposition(nograph); +shock_decomposition(nograph, with_epilogue); // test for nothing to squeeze squeeze_shock_decomposition; -// oo_ = squeeze_shock_decomp(M_,oo_,options_); // standard plot plot_shock_decomposition y_obs R_obs pie_obs dq de; @@ -122,7 +120,6 @@ realtime_shock_decomposition(forecast=8, save_realtime=[5 9 13 17 21 25 29 33 37 // test squeeze squeeze_shock_decomposition; -// oo_ = squeeze_shock_decomp(M_,oo_,options_); //realtime pooled plot_shock_decomposition(realtime = 1) y_obs R_obs pie_obs dq de; @@ -167,7 +164,6 @@ realtime_shock_decomposition(fast_realtime=75) y_obs R_obs pie_obs dq de; // re-test squeeze squeeze_shock_decomposition; -// oo_ = squeeze_shock_decomp(M_,oo_,options_); collect_latex_files; if system(['pdflatex -halt-on-error -interaction=batchmode ' M_.fname '_TeX_binder.tex'])