Skip to content
Snippets Groups Projects
Commit 9b3c8355 authored by MichelJuillard's avatar MichelJuillard
Browse files

adding the constant (steady state + effect of future uncertainty) to

the simulated series with 3rd order approximation
parent d97e0368
No related branches found
No related tags found
No related merge requests found
...@@ -139,6 +139,9 @@ else ...@@ -139,6 +139,9 @@ else
end end
case 3 case 3
% only with pruning % only with pruning
% the third moments of the shocks are assumed null. We don't have
% an interface for specifying them
constant = dr.ys(order_var) + 0.5*dr.ghs2;
ghx = dr.ghx; ghx = dr.ghx;
ghu = dr.ghu; ghu = dr.ghu;
ghxx = dr.ghxx; ghxx = dr.ghxx;
...@@ -182,7 +185,7 @@ else ...@@ -182,7 +185,7 @@ else
+ gyy12 + ghxss*yhat1 + ghuss*u); + gyy12 + ghxss*yhat1 + ghuss*u);
yhat2 = ghx*yhat2 + gyy + guu + 2*gyu + ghs2; yhat2 = ghx*yhat2 + gyy + guu + 2*gyu + ghs2;
yhat1 = ghx*yhat1 + ghu*u; yhat1 = ghx*yhat1 + ghu*u;
y_(order_var,i) = yhat1 + (1/2)*yhat2 + (1/6)*yhat3; y_(order_var,i) = constant + yhat1 + (1/2)*yhat2 + (1/6)*yhat3;
yhat1 = yhat1(ipred); yhat1 = yhat1(ipred);
yhat2 = yhat2(ipred); yhat2 = yhat2(ipred);
yhat3 = yhat3(ipred); yhat3 = yhat3(ipred);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment