From beb7d42d748f9f0f5216ed7aca93dceb4f73df2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemia=20=28Scylla=29?= Date: Mon, 11 Feb 2019 17:01:39 +0100 Subject: [PATCH] Initialize IRFs with histval (second approach). --- .../{solow_irf.mod => irf/solow_1.mod} | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) rename tests/ecb/backward-models/{solow_irf.mod => irf/solow_1.mod} (88%) diff --git a/tests/ecb/backward-models/solow_irf.mod b/tests/ecb/backward-models/irf/solow_1.mod similarity index 88% rename from tests/ecb/backward-models/solow_irf.mod rename to tests/ecb/backward-models/irf/solow_1.mod index 4f9363c11..6c0f41fe3 100644 --- a/tests/ecb/backward-models/solow_irf.mod +++ b/tests/ecb/backward-models/irf/solow_1.mod @@ -86,6 +86,7 @@ title('IRF (shock on the growth rate of efficiency)') ** the period of the initial condition). */ +/* histval; Efficiency(0) = 1; EfficiencyGrowth(0) = .5; @@ -93,7 +94,7 @@ histval; PopulationGrowth(0) = .5; PhysicalCapitalStock(0) = 1; end; - +*/ // Define the shocks for which we want to compute the IRFs listofshocks = {'e_x', 'e_n'}; @@ -101,17 +102,10 @@ listofshocks = {'e_x', 'e_n'}; listofvariables = {'Efficiency', 'Population', 'Output'}; // Compute the IRFs -ds = dseries(repmat(M_.endo_histval', 10, 1), 1990Q1, cellstr(M_.endo_names), cellstr(M_.endo_names_tex)); -irfs = backward_model_irf(ds, dseries(), listofshocks, listofvariables, 50); // 10 is the number of periods (default value is 40). +irfs = backward_model_irf([], dseries(), listofshocks, listofvariables, 50); // 10 is the number of periods (default value is 40). // Plot an IRF (shock on technology) figure(2) plot(irfs.e_x.Output) legend('Output') -title('IRF (shock on the growth rate of efficiency)') - -/* REMARK -** ------ -** -** This model is nonlinear and non stationary. For different initial conditions the IRFs may look quite different. -*/ \ No newline at end of file +title('IRF (shock on the growth rate of efficiency)') \ No newline at end of file