Smoother optimal policy


Is there an easy way to run the smoother over a model solved under optimal policy?

I tried to put calib_smoother after the optimal policy command (I am using dynare 4.4.3) but it complaints with the following error

Subscripted assignment dimension mismatch.

Error in stochastic_solvers (line 182)
b(:,cols_b) = jacobia_(:,cols_j);

Error in resol (line 137)
[dr,info] =

Error in dynare_resolve (line 69)


Error in DsgeSmoother (line 72)
[T,R,SteadyState,info,M_,options_,oo_] =

Error in evaluate_smoother (line 90)
= …

Error in NK_3eq (line 276)

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

It is because the interest rate equation is commented out, so there is a mismatch between number of equations and endogenous variables.
The file is attached.

JPTgapFAC_1964q2_2009q4.mat (10.8 KB)

jpt_data.m (202 Bytes)
NK_3eq.mod (3.0 KB)

Dear Paolo, at the current stage, we do not support running estimation or the smoother after discretionary_policy. It is on our to-do-list:

As you correctly recognize, there is one equation missing that is not handled in the smoother routines.