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
5bb2b2fa
Commit
5bb2b2fa
authored
Nov 07, 2011
by
Marco Ratto
Browse files
Fixed call to mode_check
parent
9be0749e
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/dynare_estimation_1.m
View file @
5bb2b2fa
...
...
@@ -353,7 +353,7 @@ if ~options_.mh_posterior_mode_estimation && options_.cova_compute
end
if
options_
.
mode_check
==
1
&&
~
options_
.
mh_posterior_mode_estimation
mode_check
(
'
objective_function
'
,
xparam1
,
hh
,
dataset_
,
options_
,
M_
,
estim_params_
,
bayestopt_
,
oo_
);
mode_check
(
objective_function
,
xparam1
,
hh
,
dataset_
,
options_
,
M_
,
estim_params_
,
bayestopt_
,
oo_
);
end
if
~
options_
.
mh_posterior_mode_estimation
...
...
matlab/mode_check.m
View file @
5bb2b2fa
function
mode_check
(
fun
c
,
x
,
fval
,
hessian
,
DynareDataset
,
DynareOptions
,
Model
,
EstimatedParameters
,
BayesInfo
,
DynareResults
)
function
mode_check
(
fun
,
x
,
hessian
,
DynareDataset
,
DynareOptions
,
Model
,
EstimatedParameters
,
BayesInfo
,
DynareResults
)
% function mode_check(x,fval,hessian,gend,data,lb,ub)
% Checks the maximum likelihood mode
...
...
@@ -91,7 +91,7 @@ for plt = 1:nbplt,
end
for
i
=
1
:
length
(
z
)
xx
(
kk
)
=
z
(
i
);
[
fval
,
exit_flag
]
=
feval
(
fun
,
x
,
DynareDataset
,
DynareOptions
,
Model
,
EstimatedParameters
,
BayesInfo
,
DynareResults
);
[
fval
,
exit_flag
]
=
feval
(
fun
,
x
x
,
DynareDataset
,
DynareOptions
,
Model
,
EstimatedParameters
,
BayesInfo
,
DynareResults
);
if
exit_flag
y
(
i
,
1
)
=
fval
;
else
...
...
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