Page 1 of 1
dynamic model derivatives
Posted:
Mon Jun 02, 2014 8:00 am
by mkolas
Is there any way to prevent the preprocessor from calculating the second-order dynamic model derivatives without running stoch_simul with option order=1? I just want Dynare to produce the modefile_dynamic.m with first-order derivatives. I have figured out that I can impose it by using simul(periods=1) in the mod-file, but maybe there is a more efficient way.
Any help / suggestion would be highly appreciated.
Marcin
Re: dynamic model derivatives
Posted:
Mon Jun 02, 2014 8:11 am
by jpfeifer
If you could tell me what you are trying to do, there might be an easier way to achieve your goal.
Re: dynamic model derivatives
Posted:
Mon Jun 02, 2014 8:40 am
by mkolas
I am using the Occbin toolkit which uses dynamic model derivatives produced by the preprocessor and stored in the *_dynamic.m file. Some of model variants do not satisfy the B-K conditions and hence are cannot be run with stoch_simul, which seems to me the only place where imposing order=1 prevents the preprocessor from calculating 2nd order model derivatives. In my case, calculating them is harmful since the model is quite big.
Re: dynamic model derivatives
Posted:
Fri Jun 06, 2014 3:03 pm
by jpfeifer
Did you try to use the noprint option of stoch_simul? That should suppress any crashes and continue running the file, i.e.
- Code: Select all
stoch_simul(order=1,noprint)
Re: dynamic model derivatives
Posted:
Fri Jun 06, 2014 3:14 pm
by mkolas
Thanks a lot, Johannes! I did not know that noprint suppresses any crashes. And your solution works about twice faster than my brute-force fix.