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
c6dc3653
Commit
c6dc3653
authored
8 years ago
by
Johannes Pfeifer
Committed by
Stéphane Adjemian
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add specification check of Ramsey policy to initial_estimation_checks.m
Related to #1173
parent
582bcb7a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/initial_estimation_checks.m
+15
-1
15 additions, 1 deletion
matlab/initial_estimation_checks.m
with
15 additions
and
1 deletion
matlab/initial_estimation_checks.m
+
15
−
1
View file @
c6dc3653
...
@@ -110,7 +110,21 @@ if info
...
@@ -110,7 +110,21 @@ if info
fprintf
(
'The prior density evaluated at the initial values is Inf for the following parameters: %s\n'
,
BayesInfo
.
name
{
info
,
1
})
fprintf
(
'The prior density evaluated at the initial values is Inf for the following parameters: %s\n'
,
BayesInfo
.
name
{
info
,
1
})
error
(
'The initial value of the prior is -Inf'
)
error
(
'The initial value of the prior is -Inf'
)
end
end
if
DynareOptions
.
ramsey_policy
%test whether specification matches
inst_nbr
=
size
(
DynareOptions
.
instruments
,
1
);
if
inst_nbr
~=
0
orig_endo_aux_nbr
=
Model
.
orig_endo_nbr
+
min
(
find
([
Model
.
aux_vars
.
type
]
==
6
))
-
1
;
implied_inst_nbr
=
orig_endo_aux_nbr
-
Model
.
orig_eq_nbr
;
if
inst_nbr
>
implied_inst_nbr
error
(
'You have specified more instruments than there are omitted equations'
)
elseif
inst_nbr
<
implied_inst_nbr
error
(
'You have specified fewer instruments than there are omitted equations'
)
end
end
end
% Evaluate the likelihood.
% Evaluate the likelihood.
ana_deriv
=
DynareOptions
.
analytic_derivation
;
ana_deriv
=
DynareOptions
.
analytic_derivation
;
DynareOptions
.
analytic_derivation
=
0
;
DynareOptions
.
analytic_derivation
=
0
;
...
...
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