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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Stéphane Adjemian
dynare
Commits
b215eedb
Commit
b215eedb
authored
1 year ago
by
Johannes Pfeifer
Browse files
Options
Downloads
Patches
Plain Diff
NK_baseline.mod: set up shocks block in a way that standard deviation parameters can be estimated
parent
fb18777e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show 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 @
b215eedb
...
@@ -27,12 +27,16 @@
...
@@ -27,12 +27,16 @@
* conform with Dynare’s end of period stock notation, we use the
* conform with Dynare’s end of period stock notation, we use the
* predetermined_variables-command.
* 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
* Please note that the following copyright notice only applies to this Dynare
* implementation of the model.
* implementation of the model.
*/
*/
/*
/*
* Copyright © 2013-202
0
Dynare Team
* Copyright © 2013-202
3
Dynare Team
*
*
* This file is part of Dynare.
* This file is part of Dynare.
*
*
...
@@ -151,12 +155,12 @@ gammmaPI =1.29;
...
@@ -151,12 +155,12 @@ gammmaPI =1.29;
PIbar = 1.01;
PIbar = 1.01;
rhod = 0.12;
rhod = 0.12;
rhophi = 0.93;
rhophi = 0.93;
sigma_A = -3.97;
sigma_A =
exp(
-3.97
)
;
sigma_d = -1.51;
sigma_d =
exp(
-1.51
)
;
sigma_phi =-2.36;
sigma_phi =
exp(
-2.36
)
;
sigma_mu =-5.43;
sigma_mu =
exp(
-5.43
)
;
sigma_m =-5.85;
sigma_m =
exp(
-5.85
)
;
Lambdamu=3.4e-3;
Lambdamu=3.4e-3;
LambdaA = 2.8e-3;
LambdaA = 2.8e-3;
...
@@ -214,7 +218,7 @@ mc=(1/(1-alppha))^(1-alppha)*(1/alppha)^alppha*w^(1-alppha)*r^alppha;
...
@@ -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);
1=thetap*(PI(-1)^chi/PI)^(1-epsilon)+(1-thetap)*PIstar^(1-epsilon);
[name='Taylor Rule']
[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']
[name='Resource constraint']
yd=c+x+mu_z^(-1)*mu_I^(-1)*(gammma1*(u-1)+gammma2/2*(u-1)^2)*k;
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;
...
@@ -235,24 +239,24 @@ PIstarw=wstar/w;
//exogenous processes
//exogenous processes
[name='Preference Shock']
[name='Preference Shock']
log(d)=rhod*log(d(-1))+epsd;
log(d)=rhod*log(d(-1))+
sigma_d*
epsd;
[name='Labor disutility Shock']
[name='Labor disutility Shock']
log(phi)=rhophi*log(phi(-1))+epsphi;
log(phi)=rhophi*log(phi(-1))+
sigma_phi*
epsphi;
[name='Investment specific technology']
[name='Investment specific technology']
log(mu_I)=Lambdamu+epsmu_I;
log(mu_I)=Lambdamu+
sigma_mu*
epsmu_I;
[name='Neutral technology']
[name='Neutral technology']
log(mu_A)=LambdaA+epsA;
log(mu_A)=LambdaA+
sigma_A*
epsA;
[name='Defininition composite technology']
[name='Defininition composite technology']
mu_z=mu_A^(1/(1-alppha))*mu_I^(alppha/(1-alppha));
mu_z=mu_A^(1/(1-alppha))*mu_I^(alppha/(1-alppha));
end;
end;
shocks;
shocks;
var epsd; stderr
exp(sigma_d)
;
var epsd; stderr
1
;
var epsphi; stderr
exp(sigma_phi)
;
var epsphi; stderr
1
;
var epsmu_I; stderr
exp(sigma_mu)
;
var epsmu_I; stderr
1
;
var epsA; stderr
exp(sigma_A)
;
var epsA; stderr
1
;
var epsm; stderr
exp(sigma_m)
;
var epsm; stderr
1
;
end;
end;
steady;
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