Help with discretionary policy

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,:slight_smile: = 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
gali2008ch3disc.mod (6.52 KB)

All mod-files in my repository are built to work with Dynare 4.5, i.e. currently you must use the unstable version.

Ok I will do that. Thank you very much Dr. Pfeifer!