adding provision for histval in conditional_forecasts
parent
7740fdaca0
commit
cb9a0ef064
|
@ -118,7 +118,11 @@ if estimated_model
|
||||||
trend = trend(oo_.dr.order_var,:);
|
trend = trend(oo_.dr.order_var,:);
|
||||||
InitState(:,1) = atT(:,end);
|
InitState(:,1) = atT(:,end);
|
||||||
else
|
else
|
||||||
InitState(:,1) = zeros(M_.endo_nbr,1);
|
if isempty(M_.endo_histval)
|
||||||
|
InitState(:,1) = zeros(M_.endo_nbr,1);
|
||||||
|
else
|
||||||
|
InitState(:,1) = M_.endo_histval(oo_.dr.order_var) - oo_.steady_state(oo_.dr.order_var);
|
||||||
|
end
|
||||||
trend = repmat(oo_.steady_state(oo_.dr.order_var),1,options_cond_fcst.periods+1);
|
trend = repmat(oo_.steady_state(oo_.dr.order_var),1,options_cond_fcst.periods+1);
|
||||||
graph_title='Calibration';
|
graph_title='Calibration';
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue