Merge branch 'realtime' of git.dynare.org:JohannesPfeifer/dynare

Ref. !1966
pac-components
Sébastien Villemot 2021-12-07 12:16:20 +01:00
commit 40b2565140
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 4 additions and 1 deletions

View File

@ -101,7 +101,10 @@ end
% save_realtime=0;
save_realtime = options_.shock_decomp.save_realtime;
% array of time points in the range options_.presample+1:options_.nobs
if isnan(options_.nobs)
error('realtime_shock_decomposition: the nobs-option must be set.')
end
zreal = zeros(endo_nbr+length(M_.epilogue_names)*with_epilogue,nshocks+2,options_.nobs+forecast_);
zcond = zeros(endo_nbr+length(M_.epilogue_names)*with_epilogue,nshocks+2,options_.nobs);