Sequence of stochastic shocks

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Sequence of stochastic shocks

Postby Lupin » Wed Jun 27, 2012 1:39 am

I want to simulate a sequence of stochastic shocks (on the same variable). That is, first shock, then use the irf at t=1 as initval for the second shock, and so on... Do you think it's ok? I tried but dynare gives me the following error that I don't understand:

??? Attempted to access x(2); index out of bounds because numel(x)=1.

Error in ==> model_simple_r_static at 24
rhs =y(4)+x(2)+y(6);

Error in ==> resol at 130
resid = feval(fh,steady_state_0,oo_.exo_steady_state, M_.params);

Error in ==> stoch_simul at 66
[oo_.dr, info] = resol(oo_.steady_state,0);

Error in ==> model_simple_r at 285
info = stoch_simul(var_list_);

Error in ==> dynare at 120
evalin('base',fname) ;

Can someone help? Thanks
Lupin
 
Posts: 4
Joined: Thu Jun 21, 2012 3:51 pm

Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 7 guests