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
Johannes Pfeifer
dynare
Commits
35b1a685
Commit
35b1a685
authored
Dec 09, 2020
by
Johannes Pfeifer
Browse files
🐛
allow cova_compute=0 with user-defined MCMC_jumping_covariance
parent
81b78fd9
Pipeline
#4516
passed with stages
in 72 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
matlab/check_posterior_sampler_options.m
View file @
35b1a685
...
...
@@ -378,11 +378,13 @@ end
% here are all samplers requiring a proposal distribution
if
~
strcmp
(
posterior_sampler_options
.
posterior_sampling_method
,
'slice'
)
if
~
options_
.
cova_compute
&&
~
(
options_
.
load_mh_file
&&
posterior_sampler_options
.
use_mh_covariance_matrix
)
if
~
options_
.
cova_compute
&&
~
(
options_
.
load_mh_file
&&
posterior_sampler_options
.
use_mh_covariance_matrix
)
if
strcmp
(
'hessian'
,
options_
.
MCMC_jumping_covariance
)
skipline
()
disp
(
'check_posterior_sampler_options:: I cannot start the MCMC because the Hessian of the posterior kernel at the mode was not computed'
)
disp
(
'check_posterior_sampler_options:: or there is no previous MCMC to load '
)
error
(
'check_posterior_sampler_options:: MCMC cannot start'
)
end
end
end
...
...
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