Page 1 of 1

Conditional forecast-constrained paths of different lengths

PostPosted: Tue Jul 22, 2014 8:33 pm
by vn13
Dear Dynare users,

Is it somehow possible (or is it planned to be implemented in next releases) to perform conditional forecasting using constrained paths of different lengths? For example, I want to constrain the interest rate path for the next 4 periods, but the exchange rate for the next quarter only.

Trying to do this with ‘conditional_forecast’ resulted in obvious error of
conditional_forecast_paths: all constrained paths must have the same length!


I did not manage yet to successfully use the ‘flip_plan’ procedure for conditional forecasting, but some preliminary attempts with different lengths for individual constrained paths resulted in error:

Attempted to access constraint_index.%cell(2); index out of bounds because numel(constraint_index.%cell)=1.

Error in det_cond_forecast (line 427)
indx_x(l2) = length(controlled_varexo) + pf * (ii - 2) + constraint_index{k + ii - 1}(pf_c);


With ‘perfect_foresight’ option and equal lengths of constrained paths, the simulation is performed fine (although I still have some issues interpreting the results).

Thank you!

Re: Conditional forecast-constrained paths of different leng

PostPosted: Wed Jul 23, 2014 8:57 am
by jpfeifer
I added this as a user request for the future: https://github.com/DynareTeam/dynare/issues/699
But don't expect this to be implemented in the near future.

Re: Conditional forecast-constrained paths of different leng

PostPosted: Wed Jul 23, 2014 11:32 am
by vn13
OK.

Thanks a lot!