Remove duplication of restrict_var_list in bayestopt_
parent
80086ff4ab
commit
efee7b1a47
|
@ -406,7 +406,6 @@ end
|
|||
k2 = union(var_obs_index_dr,[M_.nstatic+1:M_.nstatic+M_.nspred]', 'rows');
|
||||
% Set restrict_state to postion of observed + state variables in expanded state vector.
|
||||
oo_.dr.restrict_var_list = k2;
|
||||
bayestopt_.restrict_var_list = k2;
|
||||
% set mf0 to positions of state variables in restricted state vector for likelihood computation.
|
||||
[junk,bayestopt_.mf0] = ismember([M_.nstatic+1:M_.nstatic+M_.nspred]',k2);
|
||||
% Set mf1 to positions of observed variables in restricted state vector for likelihood computation.
|
||||
|
|
|
@ -259,7 +259,7 @@ dr = DynareResults.dr;
|
|||
if isempty(init_flag)
|
||||
mf0 = BayesInfo.mf0;
|
||||
mf1 = BayesInfo.mf1;
|
||||
restrict_variables_idx = BayesInfo.restrict_var_list;
|
||||
restrict_variables_idx = dr.restrict_var_list;
|
||||
observed_variables_idx = restrict_variables_idx(mf1);
|
||||
state_variables_idx = restrict_variables_idx(mf0);
|
||||
sample_size = size(Y,2);
|
||||
|
|
Loading…
Reference in New Issue