Make backward model IRF routine also return the impulses.

 - In the second output argument (a dseries object) where we store the baseline
   scenario for the endogenous variables we add the baseline for the exogenous

 - In the third output argument (a structure of dseries objects, one field per
   shock scenario), we also store the impulses considered for generating the
parent dc670e01
......@@ -196,9 +196,11 @@ for i=1:length(listofshocks)
deviations.(name) = alldeviations{listofvariables{:}};
if nargout>2
irfs.(name) = allirfs{listofvariables{:}};
irfs.(name) = [irfs.(name) dseries(innovations, initialcondition.last+1, exonames)];
if nargout>1
baseline = dseries(transpose(endo_simul__0), initialcondition.init, endonames(1:M_.orig_endo_nbr), cellstr(DynareModel.endo_names_tex(1:M_.orig_endo_nbr,:)));
baseline = [baseline, innovationbaseline];
\ No newline at end of file
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