Merge branch 'resid_ramsey' of git.dynare.org:JohannesPfeifer/dynare

Ref. !1942
pac-components
Sébastien Villemot 2021-10-12 14:08:51 +02:00
commit b9576cc2b7
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
3 changed files with 6 additions and 4 deletions

View File

@ -102,11 +102,11 @@ if nargout == 0
ind = [];
disp('Residuals of the static equations:')
skipline()
for i=1:M_.orig_endo_nbr
if abs(z(i)) < options_.solve_tolf/100
for i=1:M_.orig_eq_nbr
if abs(z(i+M_.ramsey_eq_nbr)) < options_.solve_tolf/100
tmp = 0;
else
tmp = z(i);
tmp = z(i+M_.ramsey_eq_nbr);
end
if istag
tg = tags(cell2mat(tags(:,1)) == i,2:3); % all tags for equation i
@ -123,4 +123,4 @@ if nargout == 0
skipline(2)
end
oo_.steady_state = steady_state_old;
oo_.steady_state = steady_state_old;

View File

@ -29,6 +29,7 @@ var e; stderr 1;
end;
planner_objective pi_c^2 + y^2;
resid;
discretionary_policy(instruments=(i),irf=0,planner_discount=beta, periods=200);
// Generate data used by dennis_1_estim.mod

View File

@ -169,6 +169,7 @@ end;
planner_objective pi^2 +(((1-theta)*(1-betta*theta)/theta*((1-alppha)/(1-alppha+alppha*epsilon)))*(siggma+(phi+alppha)/(1-alppha)))/epsilon*y_gap^2;
ramsey_model(instruments=(i),planner_discount=betta);
resid;
stoch_simul(order=1,irf=13) x pi p u;
verbatim;