Error shock_decomposition unstable version

Hi everyone,

I’m currently using the unstable version of 12-12-2016 and trying to use the shock_decomposition command, but it gives me the following error:

Subscripted assignment dimension mismatch.

Error in shock_decomposition (line 90)
z(:,end,:slight_smile: = Smoothed_Variables_deviation_from_mean;

Error in gali2_fd (line 292)
oo_ = shock_decomposition(M_,oo_,options_,var_list_);

Error in dynare (line 223)
evalin(‘base’,fname) ;

Right now I can’t upload the data file beacuse of my work online restrictions, but could you please check if the command is working properly in your computer or tell me why is it probably failing in mine?

Thanks!
gali2_fd.mod (4.74 KB)

That seems to be a bug caused by the use of the selected_variables_only-option. Remove it and it will work.

Thanks for your help Dr. Pfeifer. It worked.
By the way, thanks for all the great effort in Dynare and solving our doubts.