From ee8dfb76c451a2f3b5610b052d7d3fc2b1ab6e0f Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Wed, 21 Sep 2022 10:14:23 +0200 Subject: [PATCH] Fix posterior IRF generation with loglinear The unlogged steady state was used for both the starting value and the baseline --- matlab/irf.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/matlab/irf.m b/matlab/irf.m index 07ec81745..e4268292e 100644 --- a/matlab/irf.m +++ b/matlab/irf.m @@ -35,6 +35,11 @@ function y = irf(M_, options_, dr, e1, long, drop, replic, iorder) % You should have received a copy of the GNU General Public License % along with Dynare. If not, see . +if options_.loglinear && ~options_.logged_steady_state + dr.ys = log_variable(1:M_.endo_nbr,dr.ys,M_); + options_.logged_steady_state=1; +end + if M_.maximum_lag >= 1 temps = repmat(dr.ys,1,M_.maximum_lag); else