Reset seed before drawing starting points of MCMC chains

Removes stochastics between different runs while not affecting the subsequent MCMC computations for which the seed is also reset and saved
Closes #1048
time-shift
Johannes Pfeifer 2016-03-16 20:09:24 +01:00
parent 939ac02bad
commit 26c0825b6f
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ if ~options_.load_mh_file && ~options_.mh_recover
fprintf(fidlog,' \n');
% Find initial values for the nblck chains...
if nblck > 1% Case 1: multiple chains
set_dynare_seed('default');
fprintf(fidlog,[' Initial values of the parameters:\n']);
disp('Estimation::mcmc: Searching for initial values...')
ix2 = zeros(nblck,npar);