From 17dec97c4f24958498cacae4ebdef608945449c2 Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Wed, 5 Oct 2016 19:04:13 +0200
Subject: [PATCH] Use raw_data in forecast plots instead of prefiltered data

---
 matlab/dynare_estimation.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/matlab/dynare_estimation.m b/matlab/dynare_estimation.m
index 32d91c377d..1620c30f63 100644
--- a/matlab/dynare_estimation.m
+++ b/matlab/dynare_estimation.m
@@ -29,7 +29,7 @@ function oo_recursive_=dynare_estimation(var_list,dname)
 % You should have received a copy of the GNU General Public License
 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
-global options_ oo_ M_ dataset_
+global options_ oo_ M_ dataset_ dataset_info
 
 oo_recursive_={};
 
@@ -143,7 +143,7 @@ if nnobs > 1 && horizon > 0
     time_offset=min(3,gend-1); %for observables, plot 3 previous periods unless data is shorter
     k = time_offset+min(nobs(end)-nobs(1)+horizon, ...
               size(dataset_.data,1)-nobs(1));
-    data2 = dataset_.data(end-k+1:end,:);
+    data2 = dataset_info.rawdata(end-k+1:end,:);
     [nbplt,nr,nc,lr,lc,nstar] = pltorg(nvar);
     m = 1;
     plot_index=0;
-- 
GitLab