Dynare crash: varexo_det in a recursive model

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Dynare crash: varexo_det in a recursive model

Postby Stefan_Boeters » Wed Aug 24, 2016 11:13 am

Apparently Dynare crashes (with a Matlab error message that is cryptical, to me at least) when varexo_det is used in a purely recursive model (only backward-looking variables). See the attached example. As it stands, the example produces the crash, if you use the out-commented equation (with a forward-looking variable) instead, it works fine.

Admittedly, given that varexo_det is used to model anticipated, deterministic shocks, the combination with a backward-looking model does not really make sense. Still, it might appear occasionally (as in my case) if forward-linkages are switched off temporarily for testing purposes. It would be nice if someone found the time to introduce a telling Dynare error-message for this case.
Attachments
check_varexodet_03.mod
Example varexo_det crash
(275 Bytes) Downloaded 64 times
Stefan_Boeters
 
Posts: 19
Joined: Fri Jul 15, 2016 8:05 am

Re: Dynare crash: varexo_det in a recursive model

Postby jpfeifer » Wed Aug 24, 2016 12:57 pm

Thanks for pointing this out. In the future, you will get an instructive error message of the form
STOCHASTIC_SOLVER: Dynare does not solve purely backward models with var_exo_det.
STOCHASTIC_SOLVER: To circumvent this restriction, you can add a foward-looking dummy equation of the form:
STOCHASTIC_SOLVER: junk=0.9*junk(+1);
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 7 guests