Fix posterior IRF generation with loglinear

The unlogged steady state was used for both the starting value and the baseline
bgp-dev
Johannes Pfeifer 2022-09-21 10:14:23 +02:00
parent 12ec1ec0e6
commit ee8dfb76c4
1 changed files with 5 additions and 0 deletions

View File

@ -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 <https://www.gnu.org/licenses/>.
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