Skip to content
Snippets Groups Projects
Commit f86b0a5a authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Stéphane Adjemian
Browse files

Make dyn_forecast.m account for trend_coeffs saving coefficients for all variables

parent 3b09ab54
Branches
Tags
No related merge requests found
......@@ -107,9 +107,10 @@ switch task
trend_coeffs = [];
for i=1:length(var_obs)
tmp = strmatch(var_obs{i},endo_names(i_var,:),'exact');
trend_var_index=strmatch(var_obs{i},M.endo_names,'exact');
if ~isempty(tmp)
i_var_obs = [ i_var_obs; tmp];
trend_coeffs = [trend_coeffs; oo.Smoother.TrendCoeffs(i)];
trend_coeffs = [trend_coeffs; oo.Smoother.TrendCoeffs(trend_var_index)];
end
end
if ~isempty(trend_coeffs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment