Skip to content
Snippets Groups Projects
Commit 6737d9f8 authored by Marco Ratto's avatar Marco Ratto
Browse files

truncate stochastic shocks to 90 periods, to avoid no convergence in period 91

parent e31b3137
No related branches found
No related tags found
No related merge requests found
...@@ -44,13 +44,13 @@ if option==1 ...@@ -44,13 +44,13 @@ if option==1
elseif option==2 elseif option==2
nperiods = 100; nperiods = 90;
randn('seed',1); randn('seed',1);
shockssequence = 1*randn(nperiods,1)*0.02 ; shockssequence = 1*randn(nperiods,1)*0.02 ;
shocks(surprise,overwrite); shocks(surprise,overwrite);
var erra; var erra;
periods 1:100; periods 1:90;
values (shockssequence); values (shockssequence);
end; end;
...@@ -60,7 +60,7 @@ end ...@@ -60,7 +60,7 @@ end
occbin_setup(smoother_debug); occbin_setup(smoother_debug);
occbin_solver(simul_debug,simul_periodic_solution,simul_periods=200,simul_maxit=300,simul_curb_retrench,simul_check_ahead_periods=300); occbin_solver(simul_debug,simul_periodic_solution,simul_periods=200,simul_maxit=300,simul_curb_retrench,simul_check_ahead_periods=300);
occbin_write_regimes(filename='test',periods=[1:100]); occbin_write_regimes(filename='test',periods=[1:90]);
%% Modify to plot IRFs %% Modify to plot IRFs
titlelist = char('c','lambdak','k','i','a'); titlelist = char('c','lambdak','k','i','a');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment