correcting bug in welfare computation when using ramsey_policy and

histval
time-shift
Michel Juillard 2012-06-18 20:29:35 +02:00
parent 12046ebd07
commit 1eef328de0
1 changed files with 1 additions and 2 deletions

View File

@ -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)));