Problems about replication of dynare working paper15
Posted: Fri Nov 13, 2015 2:04 pm
Hello everyone,
I want to get the planner_objective_value after the command 'ramsey_policy' when replicating the dynare wp15(http://www.dynare.org/wp-repo/dynarewp015.pdf), but after all other steady states the dynare said (at this time I was using the dynare 4.2.4):
Reference to non-existent field 'endo_nbr'.
Error in evaluate_planner_objective (line 36)
endo_nbr = M.endo_nbr;
Error in ramsey_policy (line 31)
oo_.planner_objective_value = evaluate_planner_objective(M_,options_,oo_);
Error in ARGEMmin111 (line 530)
ramsey_policy(var_list_);
Error in dynare (line 120)
evalin('base',fname) ;
Then I updated the version to dynare 4.4.3, and dynare said:
Undefined function or variable "ys".
Error in dyn_ramsey_static (line 57)
[inst_val,info1] = dynare_solve(nl_func,ys(k_inst),0);
Error in evaluate_steady_state (line 55)
[ys,params] = dyn_ramsey_static(ys_init,M,options,oo);
Error in resol (line 104)
[dr.ys,M.params,info] =
evaluate_steady_state(oo.steady_state,M,options,oo,0);
Error in stoch_simul (line 88)
[oo_.dr,info,M_,options_,oo_] = resol(0,M_,options_,oo_);
Error in ramsey_policy (line 25)
info = stoch_simul(var_list);
Error in ARGEMmin111 (line 931)
ramsey_policy(var_list_);
Error in dynare (line 180)
evalin('base',fname) ;
I totally have no idea of these errors, is there sth wrong with the dynare version? How can I fix it to get the planner_objective_value in the end? I modified the original .mod file according to the comments in it, did I made any mistakes?
Any help will be appreciated!!!
I want to get the planner_objective_value after the command 'ramsey_policy' when replicating the dynare wp15(http://www.dynare.org/wp-repo/dynarewp015.pdf), but after all other steady states the dynare said (at this time I was using the dynare 4.2.4):
Reference to non-existent field 'endo_nbr'.
Error in evaluate_planner_objective (line 36)
endo_nbr = M.endo_nbr;
Error in ramsey_policy (line 31)
oo_.planner_objective_value = evaluate_planner_objective(M_,options_,oo_);
Error in ARGEMmin111 (line 530)
ramsey_policy(var_list_);
Error in dynare (line 120)
evalin('base',fname) ;
Then I updated the version to dynare 4.4.3, and dynare said:
Undefined function or variable "ys".
Error in dyn_ramsey_static (line 57)
[inst_val,info1] = dynare_solve(nl_func,ys(k_inst),0);
Error in evaluate_steady_state (line 55)
[ys,params] = dyn_ramsey_static(ys_init,M,options,oo);
Error in resol (line 104)
[dr.ys,M.params,info] =
evaluate_steady_state(oo.steady_state,M,options,oo,0);
Error in stoch_simul (line 88)
[oo_.dr,info,M_,options_,oo_] = resol(0,M_,options_,oo_);
Error in ramsey_policy (line 25)
info = stoch_simul(var_list);
Error in ARGEMmin111 (line 931)
ramsey_policy(var_list_);
Error in dynare (line 180)
evalin('base',fname) ;
I totally have no idea of these errors, is there sth wrong with the dynare version? How can I fix it to get the planner_objective_value in the end? I modified the original .mod file according to the comments in it, did I made any mistakes?
Any help will be appreciated!!!