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
7e3fbe0b
Commit
7e3fbe0b
authored
Sep 24, 2012
by
Stéphane Adjemian
Browse files
Fixed bug in get_prior_info. Initialize objective_function_penalty_base.
parent
da159038
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/get_prior_info.m
View file @
7e3fbe0b
...
@@ -26,7 +26,7 @@ function results = get_prior_info(info,plt_flag)
...
@@ -26,7 +26,7 @@ function results = get_prior_info(info,plt_flag)
%
%
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
global
options_
M_
estim_params_
oo_
global
options_
M_
estim_params_
oo_
objective_function_penalty_base
if
~
nargin
if
~
nargin
info
=
0
;
info
=
0
;
...
@@ -154,6 +154,11 @@ if info==2% Prior optimization.
...
@@ -154,6 +154,11 @@ if info==2% Prior optimization.
end
end
end
end
end
end
objective_function_penalty_base
=
minus_logged_prior_density
(
xinit
,
bayestopt_
.
pshape
,
...
bayestopt_
.
p6
,
...
bayestopt_
.
p7
,
...
bayestopt_
.
p3
,
...
bayestopt_
.
p4
,
options_
,
M_
,
estim_params_
,
oo_
);
% Maximization
% Maximization
[
xparams
,
lpd
,
hessian
]
=
...
[
xparams
,
lpd
,
hessian
]
=
...
maximize_prior_density
(
xinit
,
bayestopt_
.
pshape
,
...
maximize_prior_density
(
xinit
,
bayestopt_
.
pshape
,
...
...
...
Write
Preview
Markdown
is supported
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