Skip to content

Commit

Permalink
Fix bug where smoother selected wrong observables with selected_varia…
Browse files Browse the repository at this point in the history
…bles_only option

Closes #1161
  • Loading branch information
JohannesPfeifer committed Apr 12, 2016
1 parent df20a39 commit f5bd4c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions matlab/DsgeSmoother.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@
oo_.dr.restrict_var_list = oldoo.restrict_var_list;
oo_.dr.restrict_columns = oldoo.restrict_columns;

bayestopt_.mf = bayestopt_.smoother_mf;
%get location of observed variables and requested smoothed variables in
%decision rules
bayestopt_.mf = bayestopt_.smoother_var_list(bayestopt_.smoother_mf);
if options_.noconstant
constant = zeros(vobs,1);
else
Expand All @@ -118,7 +120,7 @@
end
start = options_.presample+1;
np = size(T,1);
mf = bayestopt_.smoother_mf;
mf = bayestopt_.mf;
% ------------------------------------------------------------------------------
% 3. Initial condition of the Kalman filter
% ------------------------------------------------------------------------------
Expand Down

0 comments on commit f5bd4c6

Please sign in to comment.