Hello
when running the following code
dynare NKbaseline.mod
NKbaseline.mod (5.6 KB)
phi_pi_vec=linspace(0,5,100);
phi_y_vec=linspace(0,1.5,100);
[phi_pi_mat,phi_y_mat]=meshgrid(phi_pi_vec,phi_y_vec);
%Z_plot_total=zeros(size(phi_pi_mat));
info_mat=NaN(size(phi_pi_mat));
for j=1:length(phi_pi_vec)
for k=1:length(phi_y_vec)
set_param_value(‘phi_pi’,phi_pi_mat(j,k));
set_param_value(‘phi_y’,phi_y_mat(j,k));
[dr,info,params]=resol(0,M_,options_,oo_.dr, oo_.steady_state, oo_.exo_steady_state, oo_.exo_det_steady_state);
info_mat(j,k)=info(1);
stoch_simul(var_list_);
end
end
Z_plot=zeros(size(info_mat));
Z_plot(info_mat==0)=1;
figure
contourf(phi_pi_mat,phi_y_mat,Z_plot,1)
xlabel(‘\phi_\pi’)
ylabel(‘\phi_y’)
I keep getting the error:
Unrecognized field name “kstate”.
Error in stochastic_solvers (line 195)
kstate = dr.kstate;
Error in resol (line 115)
[dr, info] = stochastic_solvers(dr, check_flag,
M_, options_, exo_steady_state,
exo_det_steady_state);
Error in untitled (line 20)
[dr,info,params]=resol(0,M_,options_,oo_.dr,
oo_.steady_state, oo_.exo_steady_state,
oo_.exo_det_steady_state);
I use dynare 6.0. I simply cannot work out how to solve the above error, so it would be very much appreciated if anyone would be able to help. Thank you in advance!