Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dynare
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
121
Issues
121
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dynare
dynare
Commits
0d4a6775
Commit
0d4a6775
authored
Jul 03, 2018
by
Stéphane Adjemian(Charybdis)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added comments in example.
parent
d1c20d41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
tests/example1_on_the_fly.mod
tests/example1_on_the_fly.mod
+17
-3
No files found.
tests/example1_on_the_fly.mod
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;
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)))
k|e = beta|p*(((exp(b)*c)/(exp(b(+1))*c(+1)))
*(exp(b(+1))*alpha|p*y(+1)+(1-delta)*k));
*(exp(b(+1))*alpha|p*y(+1)+(1-delta)*k));
y|e = exp(a)*(k(-1)^alpha)*(h^(1-alpha));
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;
a|e = rho|p*a(-1)+tau*b(-1) + e|x;
b|e = tau|p*a(-1)+rho*b(-1) + u|x;
b|e = tau|p*a(-1)+rho*b(-1) + u|x;
end;
end;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment