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
Frédéric Karamé
dynare
Commits
0d4a6775
Commit
0d4a6775
authored
6 years ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
Added comments in example.
parent
d1c20d41
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/example1_on_the_fly.mod
+17
-3
17 additions, 3 deletions
tests/example1_on_the_fly.mod
with
17 additions
and
3 deletions
tests/example1_on_the_fly.mod
+
17
−
3
View file @
0d4a6775
// Example 1 from Collard's guide to Dynare
// --+ options: nostrict +--
/*
** In the following example, the types (exogenous variable, endogenous variable, parameter) of the objects appearing in the model are declared
** on the fly in the equations. With the nostrict option, an object is by default an exogenous variable (if the type of an object is not declared
** in one of the equations, it will be interpreted as an exogenous variable). Without the nostrict option, Dynare will raise an error if the model
** contains untyped objects.
**
** An object followed by |e is an endogenous variable,
** |x is an exogenous variable,
** |p is a parameter.
**
** Example. If the first equation (consumption/leisure arbitrage) is removed from the following model block, then h (hours)
** will be interpreted as an exogenous variable.
*/
model;
c
|e
*theta|p*h|e^(1+psi|p)=(1-alpha)*y;
c*theta|p*h|e^(1+psi|p)=(1-alpha)*y;
k|e = beta|p*(((exp(b)*c)/(exp(b(+1))*c(+1)))
*(exp(b(+1))*alpha|p*y(+1)+(1-delta)*k));
y|e = exp(a)*(k(-1)^alpha)*(h^(1-alpha));
k = exp(b)*(y-c)+(1-delta|p)*k(-1);
k = exp(b)*(y-c
|e
)+(1-delta|p)*k(-1);
a|e = rho|p*a(-1)+tau*b(-1) + e|x;
b|e = tau|p*a(-1)+rho*b(-1) + u|x;
end;
...
...
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