Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
179af0e4
Commit
179af0e4
authored
Nov 08, 2013
by
Sébastien Villemot
Browse files
Octave compatibility fix: catch does not accept an argument
parent
ad3165c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/dynare_estimation_1.m
View file @
179af0e4
...
...
@@ -173,7 +173,8 @@ end
%% perform initial estimation checks;
try
oo_
=
initial_estimation_checks
(
objective_function
,
xparam1
,
dataset_
,
M_
,
estim_params_
,
options_
,
bayestopt_
,
oo_
);
catch
initial_estimation_checks_fail
% if check fails, provide info on using calibration if present
catch
% if check fails, provide info on using calibration if present
e
=
lasterror
();
if
full_calibration_detected
%calibrated model present and no explicit starting values
skipline
(
1
);
fprintf
(
'ESTIMATION_CHECKS: There was an error in computing the likelihood for initial parameter values.\n'
)
...
...
@@ -184,7 +185,7 @@ catch initial_estimation_checks_fail % if check fails, provide info on using cal
generate_estimated_params_init_block
(
xparam1_calib
,
estim_params_
,
M_
,
options_
)
skipline
(
2
);
end
rethrow
(
initial_estimation_checks_fail
);
rethrow
(
e
);
end
if
isequal
(
options_
.
mode_compute
,
0
)
&&
isempty
(
options_
.
mode_file
)
&&
options_
.
mh_posterior_mode_estimation
==
0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment