Fixed bug (missing code for handling prefilter=1).

time-shift
Stéphane Adjemian (Charybdis) 2014-07-09 15:34:17 +02:00
parent 03975f7d01
commit 94b87beb10
1 changed files with 9 additions and 1 deletions

View File

@ -239,3 +239,11 @@ DatasetInfo.descriptive.correlation = normalization_matrix*DatasetInfo.descripti
% Compute autocorrelation function.
DatasetInfo.descriptive.autocovariance = nanautocovariance(DynareDataset.data, DynareOptions.ar);
% Save raw data.
DatasetInfo.rawdata = DynareDataset.data;
% Prefilter the data if needed (remove the mean).
if isequal(DynareOptions.prefilter, 1)
DynareDataset = DynareDataset.detrend();
end