Risky steady state file given by MichelJuillard, error message

Dear Professor Johannes,

I am using examples and other files https://github.com/DynareTeam/dynare/tree/master/tests/risky_ss

I have installed MinGW64 Compiler.
But I am getting error give below:

Undefined function or variable ‘dr_np’.
Error in dyn_risky_steadystate_solver>risky_residuals_k_order (line 325)
gu1 = dr_np.ghu(i_fwrd_g,:);
Error in solve1 (line 52)
fvec = feval(func,x,varargin{:});
Error in dyn_risky_steadystate_solver (line 127)
[ys, info] = solve1(func,ys0,1:endo_nbr,1:endo_nbr,0,options.gstep, …
Error in stochastic_solvers (line 93)
[dr,info] = dyn_risky_steadystate_solver(oo_.steady_state,M_,dr, …
Error in resol (line 144)
[dr,info] = stochastic_solvers(dr,check_flag,M,options,oo);
Error in stoch_simul (line 89)
[oo_.dr,info,M_,options_,oo_] = resol(0,M_,options_,oo_);
Error in ex (line 222)
info = stoch_simul(var_list_);
Error in dynare (line 235)
evalin(‘base’,fname) ;

Please guide me on this.
Best Regards,

Which of the mod-files did you run? Or do some of them work? And which Dynare version are you using?

Thanks, it is https://github.com/DynareTeam/dynare/blob/master/tests/risky_ss/example1_risky_3.mod.

and others with 3rd order perturbation give the same error.

Hello sfaf,

could you find a solution to the problem? I had the same issue when following the example provided Michell Juliard.


That is not an official feature and I don’t think it will work with order=3. @MichelJuillard Are there any plans of implementing this?

At this stage there is no plan to implement it.

Thanks a lot for the fast reply. Does that indicate that it might work at order=2?

I just thought it is already implemented because in one of the example files that can be found here:

the final lines are


options_.risky_steadystate = 1;

Thanks for the clarification and all the insightfull replys in the forum.


The issue is with the k_order_solver, which is triggered if order>2. order=2 should work