bug fix with initial_date for conditional shock decomposition
parent
a63bc5b7f0
commit
f4b25efc5a
|
@ -134,7 +134,7 @@ steady_state = oo_.steady_state;
|
||||||
|
|
||||||
if isequal(type,'aoa') && isstruct(q2a) && realtime_
|
if isequal(type,'aoa') && isstruct(q2a) && realtime_
|
||||||
% take all dates where realtime is saved
|
% take all dates where realtime is saved
|
||||||
qqq=initial_date+options_.shock_decomp.save_realtime(:)-1;
|
qqq=options_.initial_date+options_.shock_decomp.save_realtime(:)-1;
|
||||||
% take the first Q4 of saved realtime
|
% take the first Q4 of saved realtime
|
||||||
t0=min(options_.shock_decomp.save_realtime(qqq.time(:,2)==4));
|
t0=min(options_.shock_decomp.save_realtime(qqq.time(:,2)==4));
|
||||||
if isempty(t0)
|
if isempty(t0)
|
||||||
|
|
Loading…
Reference in New Issue