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
8b9d1d13
Verified
Commit
8b9d1d13
authored
1 year ago
by
Sébastien Villemot
Browse files
Options
Downloads
Plain Diff
Merge branch 'NK_baseline' of git.dynare.org:JohannesPfeifer/dynare
Ref.
!2245
parents
38d1c053
b215eedb
No related branches found
Tags
Tags containing commit
1 merge request
!2245
NK_baseline.mod: set up shocks block in a way that standard deviation parameters can be estimated
Pipeline
#9928
passed
1 year ago
Stage: build
Stage: test
Stage: pkg
Stage: sign
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/NK_baseline.mod
+21
-17
21 additions, 17 deletions
examples/NK_baseline.mod
with
21 additions
and
17 deletions
examples/NK_baseline.mod
+
21
−
17
View file @
8b9d1d13
...
...
@@ -26,13 +26,17 @@
* The model is written in the beginning of period stock notation. To make the model
* conform with Dynare’s end of period stock notation, we use the
* predetermined_variables-command.
*
*
* The model has been implemented in detrended form, i.e. the \mu_{i,t} are actually
* the the growth rates of the original \mu_{i,t}^{orig} in the paper, i.e.
* log(\mu_{i,t})=log(\mu_{i,t}^{orig}/\mu_{i,t-1}^{orig})
*
* Please note that the following copyright notice only applies to this Dynare
* implementation of the model.
*/
/*
* Copyright © 2013-202
0
Dynare Team
* Copyright © 2013-202
3
Dynare Team
*
* This file is part of Dynare.
*
...
...
@@ -151,12 +155,12 @@ gammmaPI =1.29;
PIbar = 1.01;
rhod = 0.12;
rhophi = 0.93;
sigma_A = -3.97;
sigma_d = -1.51;
sigma_A =
exp(
-3.97
)
;
sigma_d =
exp(
-1.51
)
;
sigma_phi =-2.36;
sigma_mu =-5.43;
sigma_m =-5.85;
sigma_phi =
exp(
-2.36
)
;
sigma_mu =
exp(
-5.43
)
;
sigma_m =
exp(
-5.85
)
;
Lambdamu=3.4e-3;
LambdaA = 2.8e-3;
...
...
@@ -214,7 +218,7 @@ mc=(1/(1-alppha))^(1-alppha)*(1/alppha)^alppha*w^(1-alppha)*r^alppha;
1=thetap*(PI(-1)^chi/PI)^(1-epsilon)+(1-thetap)*PIstar^(1-epsilon);
[name='Taylor Rule']
R/Rbar=(R(-1)/Rbar)^gammmaR*((PI/PIbar)^gammmaPI*((yd/yd(-1)*mu_z)/exp(LambdaYd))^gammmay)^(1-gammmaR)*exp(epsm);
R/Rbar=(R(-1)/Rbar)^gammmaR*((PI/PIbar)^gammmaPI*((yd/yd(-1)*mu_z)/exp(LambdaYd))^gammmay)^(1-gammmaR)*exp(
sigma_m*
epsm);
[name='Resource constraint']
yd=c+x+mu_z^(-1)*mu_I^(-1)*(gammma1*(u-1)+gammma2/2*(u-1)^2)*k;
...
...
@@ -235,24 +239,24 @@ PIstarw=wstar/w;
//exogenous processes
[name='Preference Shock']
log(d)=rhod*log(d(-1))+epsd;
log(d)=rhod*log(d(-1))+
sigma_d*
epsd;
[name='Labor disutility Shock']
log(phi)=rhophi*log(phi(-1))+epsphi;
log(phi)=rhophi*log(phi(-1))+
sigma_phi*
epsphi;
[name='Investment specific technology']
log(mu_I)=Lambdamu+epsmu_I;
log(mu_I)=Lambdamu+
sigma_mu*
epsmu_I;
[name='Neutral technology']
log(mu_A)=LambdaA+epsA;
log(mu_A)=LambdaA+
sigma_A*
epsA;
[name='Defininition composite technology']
mu_z=mu_A^(1/(1-alppha))*mu_I^(alppha/(1-alppha));
end;
shocks;
var epsd; stderr
exp(sigma_d)
;
var epsphi; stderr
exp(sigma_phi)
;
var epsmu_I; stderr
exp(sigma_mu)
;
var epsA; stderr
exp(sigma_A)
;
var epsm; stderr
exp(sigma_m)
;
var epsd; stderr
1
;
var epsphi; stderr
1
;
var epsmu_I; stderr
1
;
var epsA; stderr
1
;
var epsm; stderr
1
;
end;
steady;
...
...
This diff is collapsed.
Click to expand it.
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