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
Sébastien Villemot
dynare
Commits
07191abf
Verified
Commit
07191abf
authored
9 months ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
conditional_forecast command: fix error messages
[skip ci]
parent
b804dd42
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/+conditional_forecasts/run.m
+11
-11
11 additions, 11 deletions
matlab/+conditional_forecasts/run.m
with
11 additions
and
11 deletions
matlab/+conditional_forecasts/run.m
+
11
−
11
View file @
07191abf
...
...
@@ -80,7 +80,7 @@ end
if
estimated_model
if
options_
.
prefilter
error
(
'
imc
forecast:
:
Conditional forecasting does not support the prefiltering option'
)
error
(
'
conditional_
forecast: Conditional forecasting does not support the prefiltering option'
)
end
if
ischar
(
options_cond_fcst
.
parameter_set
)
switch
options_cond_fcst
.
parameter_set
...
...
@@ -103,19 +103,19 @@ if estimated_model
xparam
=
bayestopt_
.
p1
;
graph_title
=
'Prior Mean'
;
otherwise
disp
(
'
imc
forecast:
:
If the input argument is a string, then it has to be equal to:'
)
disp
(
'
''
calibration
''
, '
)
disp
(
'
''
posterior_mode
''
, '
)
disp
(
'
''
posterior_mean
''
, '
)
disp
(
'
''
posterior_median
''
, '
)
disp
(
'
''
prior_mode
''
or'
)
disp
(
'
''
prior_mean
''
.'
)
error
(
'
imc
forecast:
:
Wrong argument type!'
)
disp
(
'
conditional_
forecast: If the input argument is a string, then it has to be equal to:'
)
disp
(
'
''
calibration
''
, '
)
disp
(
'
''
posterior_mode
''
, '
)
disp
(
'
''
posterior_mean
''
, '
)
disp
(
'
''
posterior_median
''
, '
)
disp
(
'
''
prior_mode
''
or'
)
disp
(
'
''
prior_mean
''
.'
)
error
(
'
conditional_
forecast: Wrong argument type!'
)
end
else
xparam
=
options_cond_fcst
.
parameter_set
;
if
length
(
xparam
)
~=
length
(
M_
.
params
)
error
(
'
imc
forecast:
:
The dimension of the vector of parameters doesn
''
t match the number of estimated parameters!'
)
error
(
'
conditional_
forecast: The dimension of the vector of parameters doesn
''
t match the number of estimated parameters!'
)
end
end
set_parameters
(
xparam
);
...
...
@@ -219,7 +219,7 @@ n2 = size(options_cond_fcst.controlled_varexo,1);
constrained_vars
=
oo_
.
dr
.
inv_order_var
(
constrained_vars
);
% must be in decision rule order
if
n1
~=
n2
error
(
'
imc
forecast:
:
The number of constrained variables doesn
''
t match the number of controlled shocks'
)
error
(
'
conditional_
forecast: The number of constrained variables doesn
''
t match the number of controlled shocks'
)
end
% Get indices of controlled varexo.
...
...
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