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
Dynare
dynare
Commits
6f8000f0
Commit
6f8000f0
authored
9 years ago
by
Johannes Pfeifer
Browse files
Options
Downloads
Patches
Plain Diff
Condition test whether varobs was defined on existence of field
parent
988e79b5
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1030
Condition test whether varobs was defined on existence of field
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/dynare_estimation_init.m
+5
-5
5 additions, 5 deletions
matlab/dynare_estimation_init.m
with
5 additions
and
5 deletions
matlab/dynare_estimation_init.m
+
5
−
5
View file @
6f8000f0
...
...
@@ -69,14 +69,14 @@ if options_.dsge_var && options_.presample~=0
error
(
'DSGE-VAR does not support the presample option.'
)
end
% Set the number of observed variables.
options_
.
number_of_observed_variables
=
length
(
options_
.
varobs
);
% Test if observed variables are declared.
if
~
options_
.
number_of_observed_variables
error
(
'VAROBS is missing!'
)
if
~
isfield
(
options_
,
'varobs'
)
error
(
'VAROBS
statement
is missing!'
)
end
% Set the number of observed variables.
options_
.
number_of_observed_variables
=
length
(
options_
.
varobs
);
% Check that each declared observed variable is also an endogenous variable.
for
i
=
1
:
options_
.
number_of_observed_variables
id
=
strmatch
(
options_
.
varobs
{
i
},
M_
.
endo_names
,
'exact'
);
...
...
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