Preprocessor: new “with_epilogue” option and related fixes

Ref. !1688
parent c04c111d
Pipeline #2720 passed with stages
in 91 minutes and 35 seconds
......@@ -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.
  • Why are the descriptions of with_epilogue repeated instead of just adding a reference to the first description from the subsequent ones, as we do elsewhere in the manual?

    Edited by Houtan Bastani
  • Most likely a mistake. Don’t hesitate to fix it.

Please register or sign in to reply
.. command:: initial_condition_decomposition [VARIABLE_NAME]...;
initial_condition_decomposition (OPTIONS...) [VARIABLE_NAME]...;
......
Subproject commit 8baec1e0ec5e06df5e14a96467fe520f5eb6f374
Subproject commit 5f451ebc9937b0a2a99f927a3f27fc2911b64eb9
......@@ -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'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment