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
Dynare
dynare
Commits
8fa50ad0
Commit
8fa50ad0
authored
Sep 14, 2017
by
Johannes Pfeifer
Committed by
Stéphane Adjemian
Oct 04, 2017
Browse files
Make sure prior distribution is set up without prior estimation command
parent
f0b9f453
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/execute_prior_posterior_function.m
View file @
8fa50ad0
...
...
@@ -62,6 +62,13 @@ if strcmpi(type,'posterior')
n_draws
=
options_
.
sub_draws
;
prior
=
false
;
elseif
strcmpi
(
type
,
'prior'
)
if
isempty
(
bayestopt_
)
if
~
isempty
(
estim_params_
)
&&
~
(
isfield
(
estim_params_
,
'nvx'
)
&&
(
size
(
estim_params_
.
var_exo
,
1
)
+
size
(
estim_params_
.
var_endo
,
1
)
+
size
(
estim_params_
.
corrx
,
1
)
+
size
(
estim_params_
.
corrn
,
1
)
+
size
(
estim_params_
.
param_vals
,
1
))
==
0
)
[
xparam1
,
estim_params_
,
bayestopt_
,
lb
,
ub
,
M_
]
=
set_prior
(
estim_params_
,
M_
,
options_
);
else
error
(
'The prior distributions are not properly set up.'
)
end
end
prior_draw
(
bayestopt_
,
options_
.
prior_trunc
);
else
error
(
'EXECUTE_POSTERIOR_FUNCTION: Unknown type!'
)
...
...
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