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.