Smoother optimal policy

Hi

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] =
stochastic_solvers(dr,check_flag,M,options,oo);

Error in dynare_resolve (line 69)
[dr,info,Model,DynareOptions,DynareResults]

resol(0,Model,DynareOptions,DynareResults);

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

Error in evaluate_smoother (line 90)
[atT,innov,measurement_error,updated_variables,ys,trend_coeff,aK,T,R,P,PK,decomp]
= …

Error in NK_3eq (line 276)
evaluate_smoother(‘calibration’,var_list_);

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: https://github.com/DynareTeam/dynare/issues/1173

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