Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
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
Johannes Pfeifer
dynare
Commits
4499388d
Commit
4499388d
authored
6 years ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
Changed initial conditions in Monte Carlo.
parent
efedc20d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/12-mc-iterative-ols/example.mod
+3
-3
3 additions, 3 deletions
examples/12-mc-iterative-ols/example.mod
examples/12-mc-nls/example.mod
+3
-3
3 additions, 3 deletions
examples/12-mc-nls/example.mod
with
6 additions
and
6 deletions
examples/12-mc-iterative-ols/example.mod
+
3
−
3
View file @
4499388d
...
...
@@ -89,9 +89,9 @@ for i=1:B
// Simulate the model for 500 periods
TrueData = simul_backward_model(initialconditions, 300);
// Define a structure describing the parameters to be estimated (with initial conditions).
eparams.e_c_m =
rand()
;
eparams.c_z_1 = .
5*randn()
;
eparams.c_z_2 =
.5*randn()
;
eparams.e_c_m =
.5
;
eparams.c_z_1 = .
2
;
eparams.c_z_2 =
-.1
;
// Define the dataset used for estimation
edata = TrueData;
edata.ez = dseries(NaN(TrueData.nobs, 1), 2000Q1, 'ez');
...
...
This diff is collapsed.
Click to expand it.
examples/12-mc-nls/example.mod
+
3
−
3
View file @
4499388d
...
...
@@ -85,9 +85,9 @@ for i=1:B
// Simulate the model for 500 periods
TrueData = simul_backward_model(initialconditions, 300);
// Define a structure describing the parameters to be estimated (with initial conditions).
eparams.e_c_m =
rand()
;
eparams.c_z_1 = .
5*randn()
;
eparams.c_z_2 =
.5*randn()
;
eparams.e_c_m =
.5
;
eparams.c_z_1 = .
2
;
eparams.c_z_2 =
-.1
;
// Define the dataset used for estimation
edata = TrueData;
edata.ez = dseries(NaN(TrueData.nobs, 1), 200Q1, 'ez');
...
...
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