Fix selected_variables_only option
In Dynare 4.4.3, we have in dynare_estimation_1
for i=bayestopt_.smoother_saved_var_list'
i1 = dr.order_var(bayestopt_.smoother_var_list(i));
eval(['oo_.SmoothedVariables.' deblank(M_.endo_names(i1,:)) ' = ' ...
'atT(i,:)'';']);
But bayestopt_.smoother_saved_var_list
only saves the index of the variable in bayestopt_.smoother_var_list
, not in the decision rules themselves. Therefore, we have to select atT(bayestopt_.smoother_var_list(i),:)
instead of atT(i,:)
if bayestopt_.smoother_var_list
is not equal to bayestopt_.smoother_saved_var_list
, which happens with selected_variables_only
In master the same problem has been ported to write_smoother_results
@MichelJuillard @stepan-a Should we try to fix this or should we get rid of the selected_variables_only
option?