Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
ce4da25a
Commit
ce4da25a
authored
2 years ago
by
Johannes Pfeifer
Browse files
Options
Downloads
Patches
Plain Diff
Ramsey_Example.mod: add welfare measure for Taylor rule
parent
9b787d84
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!2078
Ramsey_Example.mod: add welfare measure for Taylor rule
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/Ramsey_Example.mod
+12
-1
12 additions, 1 deletion
examples/Ramsey_Example.mod
with
12 additions
and
1 deletion
examples/Ramsey_Example.mod
+
12
−
1
View file @
ce4da25a
...
...
@@ -95,6 +95,9 @@ var C $C$ (long_name='Consumption')
r_real ${r^{ann,real}}$ (long_name='Annualized net real interest rate')
y_nat ${y^{nat}}$ (long_name='Natural (flex price) output')
y_gap ${r^{gap}}$ (long_name='Output gap')
@#if Optimal_policy==0
Welfare ${W}$ (long_name='Welfare')
@#endif
;
varexo epsilon ${\varepsilon}$ (long_name='TFP shock')
...
...
@@ -154,6 +157,10 @@ model;
y_nat=exp(Z)*sqrt((theta-1)/theta*(1+tau)/chi);
[name='output gap']
y_gap=log_C-log(y_nat);
@#if Optimal_policy==0
[name='Definition Welfare']
Welfare=log(C)-chi/2*h^2+beta*Welfare(+1);
@#endif
end;
steady_state_model;
...
...
@@ -171,6 +178,10 @@ steady_state_model;
r_real=4*log((1+R)/pi);
y_nat=sqrt((theta-1)/theta*(1+tau)/chi);
y_gap=log_C-log(y_nat);
@#if Optimal_policy==0
Welfare=1/(1-beta)*(log(C)-chi/2*h^2);
@#endif
end;
@# if defined(Ramsey) && Ramsey==1
...
...
@@ -186,7 +197,7 @@ end;
@#if Optimal_policy==0
//use Taylor rule
stoch_simul(order=2) pi_ann log_h R_ann log_C Z r_real y_nat;
stoch_simul(order=2) pi_ann log_h R_ann log_C Z r_real y_nat
Welfare
;
@#else
@# if !defined(Ramsey) || Ramsey==0
//use OSR Taylor rule
...
...
This diff is collapsed.
Click to expand it.
Johannes Pfeifer
@JohannesPfeifer
mentioned in commit
4c1a018f
·
2 years ago
mentioned in commit
4c1a018f
mentioned in commit 4c1a018facda7646d1343037de340ec07c7e3625
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment