Skip to content
Snippets Groups Projects
Verified Commit a9c747b5 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

imcforecast.m: make sure that draw index for CIs stays within feasible bounds

(cherry picked from commit 1d1c0ab8)
parent 16e93921
Branches
Tags
1 merge request!1815WIP Cherry-picks for 4.6
...@@ -257,8 +257,8 @@ mFORCS1 = mean(FORCS1,3); ...@@ -257,8 +257,8 @@ mFORCS1 = mean(FORCS1,3);
mFORCS1_shocks = mean(FORCS1_shocks,3); mFORCS1_shocks = mean(FORCS1_shocks,3);
tt = (1-options_cond_fcst.conditional_forecast.conf_sig)/2; tt = (1-options_cond_fcst.conditional_forecast.conf_sig)/2;
t1 = round(options_cond_fcst.replic*tt); t1 = max(1,round(options_cond_fcst.replic*tt));
t2 = round(options_cond_fcst.replic*(1-tt)); t2 = min(options_cond_fcst.replic,round(options_cond_fcst.replic*(1-tt)));
forecasts.controlled_variables = constrained_vars; forecasts.controlled_variables = constrained_vars;
forecasts.instruments = options_cond_fcst.controlled_varexo; forecasts.instruments = options_cond_fcst.controlled_varexo;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment