Simulating with OLR
Posted: Mon Oct 02, 2006 7:23 pm
We have no problems running OLR with no options. The reason we are using OLR is to compute or simulate optimal paths for output, inflation, and federal funds under different starting points and scenarios. When we include the simul and periods= option in the OLR command, the program manages to simulate the shocks but then fails to simulate any endogenous variables. We get the following error message:
??? Index exceeds matrix dimensions.
Error in ==> simult_ at 28
tempx1 = y_(dr.order_var,k1);
Error in ==> simult at 29
y_ = simult_(ys,dr,ex_,order);
Error in ==> stoch_simul at 85
y_ = simult(repmat(ys_,1,ykmin_),dr_);
Error in ==> oursample at 150
info = stoch_simul(var_list_);
Error in ==> dynare at 26
evalin('base',fname) ;
The problem seems to be that the dr_ matrices dynare creates are larger than our initial condition ys_ matrix, which does not include initial values for the lagrange multipliers. Is it possible to simulate with OLR if you don't use the steady command?
Attached is our .dyn file.
Thanks,
Kieran and Krishna
??? Index exceeds matrix dimensions.
Error in ==> simult_ at 28
tempx1 = y_(dr.order_var,k1);
Error in ==> simult at 29
y_ = simult_(ys,dr,ex_,order);
Error in ==> stoch_simul at 85
y_ = simult(repmat(ys_,1,ykmin_),dr_);
Error in ==> oursample at 150
info = stoch_simul(var_list_);
Error in ==> dynare at 26
evalin('base',fname) ;
The problem seems to be that the dr_ matrices dynare creates are larger than our initial condition ys_ matrix, which does not include initial values for the lagrange multipliers. Is it possible to simulate with OLR if you don't use the steady command?
Attached is our .dyn file.
Thanks,
Kieran and Krishna