Page 1 of 1

Help with discretionary policy

PostPosted: Wed Jun 15, 2016 7:10 pm
by anupmulay1
Hi,

I am attempting to run the codes written by Dr. Pfeifer for discretionary policy in an NK model (Gali_2008_chapter_5_discretion.mod on his github page), and I keep getting the following series of errors. I am new to dynare and I am struggling to make sense of what the errors mean. Please could I get some help with this? The series of errors is mentioned below, and the mod file is attached.

Subscripted assignment dimension mismatch.

Error in th_autocovariances (line 101)
ghu1(i0,:) = ghu(ikx,:);

Error in disp_th_moments (line 37)
[oo_.gamma_y,stationary_vars] = th_autocovariances(dr,ivar,M_,options_);

Error in stoch_simul (line 164)
disp_th_moments(oo_.dr,var_list);

Error in discretionary_policy (line 25)
info = stoch_simul(var_list);

Error in gali2008ch3disc (line 212)
discretionary_policy(var_list_);

Error in dynare (line 180)
evalin('base',fname) ;


Thank you very much.

Anup

Re: Help with discretionary policy

PostPosted: Wed Jun 15, 2016 7:37 pm
by jpfeifer
All mod-files in my repository are built to work with Dynare 4.5, i.e. currently you must use the unstable version.

Re: Help with discretionary policy

PostPosted: Thu Jun 16, 2016 11:56 am
by anupmulay1
Ok I will do that. Thank you very much Dr. Pfeifer!