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
3e42dc50
Commit
3e42dc50
authored
15 years ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Testsuite: added test for osr
(cherry picked from commit
99e0d248
)
parent
2b680e8e
No related branches found
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/Makefile.am
+1
-0
1 addition, 0 deletions
tests/Makefile.am
tests/osr_example.mod
+41
-0
41 additions, 0 deletions
tests/osr_example.mod
with
42 additions
and
0 deletions
tests/Makefile.am
+
1
−
0
View file @
3e42dc50
...
...
@@ -8,6 +8,7 @@ OCTAVE_MODS = \
example2.mod
\
example1_use_dll.mod
\
t_sgu_ex1.mod
\
osr_example.mod
\
ramsey.mod
\
ramst_initval_file.mod
\
example1_varexo_det.mod
\
...
...
This diff is collapsed.
Click to expand it.
tests/osr_example.mod
0 → 100644
+
41
−
0
View file @
3e42dc50
// Example of optimal simple rule
var y inflation r;
varexo y_ inf_;
parameters delta sigma alpha kappa gammarr gammax0 gammac0 gamma_y_ gamma_inf_;
delta = 0.44;
kappa = 0.18;
alpha = 0.48;
sigma = -0.06;
model(linear);
y = delta * y(-1) + (1-delta)*y(+1)+sigma *(r - inflation(+1)) + y_;
inflation = alpha * inflation(-1) + (1-alpha) * inflation(+1) + kappa*y + inf_;
r = gammax0*y(-1)+gammac0*inflation(-1)+gamma_y_*y_+gamma_inf_*inf_;
end;
shocks;
var y_;
stderr 0.63;
var inf_;
stderr 0.4;
end;
optim_weights;
inflation 1;
y 1;
end;
osr_params gammax0 gammac0 gamma_y_ gamma_inf_;
gammarr = 0;
gammax0 = 0.2;
gammac0 = 1.5;
gamma_y_ = 8;
gamma_inf_ = 3;
osr;
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