From 1eef328de002bd82371209b4ca3957012758ddbd Mon Sep 17 00:00:00 2001 From: Michel Juillard Date: Mon, 18 Jun 2012 20:29:35 +0200 Subject: [PATCH] correcting bug in welfare computation when using ramsey_policy and histval --- matlab/evaluate_planner_objective.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/matlab/evaluate_planner_objective.m b/matlab/evaluate_planner_objective.m index 0f16bb7a5..ae90b08c0 100644 --- a/matlab/evaluate_planner_objective.m +++ b/matlab/evaluate_planner_objective.m @@ -112,9 +112,8 @@ if ~isempty(M.endo_histval) % initialize endogenous state variable to histval if necessary yhat1(1:M.orig_endo_nbr) = M.endo_histval(1:M.orig_endo_nbr); if options.ramsey_policy - yhat12(1:M.orig_endo_nbr) = M.endo_histval(1:M.orig_endo_nbr); + yhat2(1:M.orig_endo_nbr) = M.endo_histval(1:M.orig_endo_nbr); end - end yhat1 = yhat1(dr.order_var(nstatic+(1:npred)),1)-dr.ys(dr.order_var(nstatic+(1:npred))); yhat2 = yhat2(dr.order_var(nstatic+(1:npred)),1)-dr.ys(dr.order_var(nstatic+(1:npred)));