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
Marco Ratto
dynare
Commits
ce0bb6f0
Commit
ce0bb6f0
authored
4 years ago
by
Marco Ratto
Browse files
Options
Downloads
Patches
Plain Diff
make if logic easier
parent
0b0077ed
Branches
utilsx
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#5268
passed
4 years ago
Stage: build
Stage: test
Stage: pkg
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/initial_estimation_checks.m
+4
-2
4 additions, 2 deletions
matlab/initial_estimation_checks.m
with
4 additions
and
2 deletions
matlab/initial_estimation_checks.m
+
4
−
2
View file @
ce0bb6f0
...
...
@@ -86,7 +86,8 @@ non_zero_ME=length(EstimatedParameters.H_entries_to_check_for_positive_definiten
print_init_check_warning
=
false
;
if
maximum_number_non_missing_observations
>
Model
.
exo_nbr
+
non_zero_ME
error
([
'initial_estimation_checks:: Estimation can
''
t take place because there are less declared shocks than observed variables!'
])
elseif
init_number_non_missing_observations
>
Model
.
exo_nbr
+
non_zero_ME
end
if
init_number_non_missing_observations
>
Model
.
exo_nbr
+
non_zero_ME
if
DynareOptions
.
no_init_estimation_check_first_obs
print_init_check_warning
=
true
;
else
...
...
@@ -96,7 +97,8 @@ end
if
maximum_number_non_missing_observations
>
length
(
find
(
diag
(
Model
.
Sigma_e
)))
+
non_zero_ME
error
([
'initial_estimation_checks:: Estimation can
''
t take place because too many shocks have been calibrated with a zero variance!'
])
elseif
init_number_non_missing_observations
>
length
(
find
(
diag
(
Model
.
Sigma_e
)))
+
non_zero_ME
end
if
init_number_non_missing_observations
>
length
(
find
(
diag
(
Model
.
Sigma_e
)))
+
non_zero_ME
if
DynareOptions
.
no_init_estimation_check_first_obs
print_init_check_warning
=
true
;
else
...
...
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