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
59a62d87
Commit
59a62d87
authored
12 years ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bugs.
parent
e8ec0a37
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/ep/ar.mod
+10
-10
10 additions, 10 deletions
tests/ep/ar.mod
tests/ep/mean_preserving_spread.m
+1
-1
1 addition, 1 deletion
tests/ep/mean_preserving_spread.m
with
11 additions
and
11 deletions
tests/ep/ar.mod
+
10
−
10
View file @
59a62d87
...
@@ -2,7 +2,7 @@ var Efficiency, efficiency;
...
@@ -2,7 +2,7 @@ var Efficiency, efficiency;
varexo EfficiencyInnovation;
varexo EfficiencyInnovation;
parameters rho, effstar, sigma
2
;
parameters rho, effstar, sigma;
/*
/*
** Calibration
** Calibration
...
@@ -11,22 +11,22 @@ parameters rho, effstar, sigma2;
...
@@ -11,22 +11,22 @@ parameters rho, effstar, sigma2;
rho = 0.950;
rho = 0.950;
effstar = 1.000;
effstar = 1.000;
sigma
2
= 0.0001;
sigma
= 0.0001;
external_function(name=mean_preserving_spread);
external_function(name=mean_preserving_spread
,nargs=2
);
model;
model;
// Eq. n°1:
// Eq. n°1:
efficiency = rho*efficiency(-1) + EfficiencyInnovation;
efficiency = rho*efficiency(-1) +
sigma*
EfficiencyInnovation;
// Eq. n°2:
// Eq. n°2:
Efficiency = effstar*exp(efficiency-mean_preserving_spread(rho));
Efficiency = effstar*exp(efficiency-mean_preserving_spread(rho
,sigma
));
end;
end;
shocks;
shocks;
var EfficiencyInnovation =
sigma2
;
var EfficiencyInnovation =
1
;
end;
end;
steady;
steady;
...
@@ -36,15 +36,15 @@ options_.ep.stochastic.order = 0;
...
@@ -36,15 +36,15 @@ options_.ep.stochastic.order = 0;
options_.ep.stochastic.nodes = 0;
options_.ep.stochastic.nodes = 0;
options_.console_mode = 0;
options_.console_mode = 0;
ts = extended_path([],100);
ts = extended_path([],100
00
);
options_.ep.verbosity = 0;
options_.ep.verbosity = 0;
options_.ep.stochastic.order = 1;
options_.ep.stochastic.order = 1;
options_.ep.stochastic.nodes = 3;
options_.ep.stochastic.nodes = 3;
options_.console_mode = 0;
options_.console_mode = 0;
sts = extended_path([],100);
sts = extended_path([],100
00
);
if max(max(abs(ts-sts)))>options_.dynatol.x
if max(max(abs(ts-sts)))>
pi*
options_.dynatol.x
disp('Stochastic Extended Path:: Something is wrong here (potential bug in extended_path.m)!!!')
disp('Stochastic Extended Path:: Something is wrong here (potential bug in extended_path.m)!!!')
end
end
This diff is collapsed.
Click to expand it.
tests/ep/mean_preserving_spread.m
+
1
−
1
View file @
59a62d87
...
@@ -14,4 +14,4 @@ function m = mean_preserving_spread(autoregressive_parameter,sigma)
...
@@ -14,4 +14,4 @@ function m = mean_preserving_spread(autoregressive_parameter,sigma)
% stephane DOT adjemian AT univ DASH lemans DOT fr
% stephane DOT adjemian AT univ DASH lemans DOT fr
% frederic DOT karame AT univ DASH evry DOT fr
% frederic DOT karame AT univ DASH evry DOT fr
m
=
sigma
/(
1
-
autoregressive_parameter
*
autoregressive_parameter
);
m
=
.
5
*
sigma
*
sigma
/(
1
-
autoregressive_parameter
*
autoregressive_parameter
);
\ No newline at end of file
\ No newline at end of file
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