Page 1 of 1

Error. division by

PostPosted: Fri Sep 05, 2014 10:03 am
by Nicolas67
Good morning everybody,
I have a problem with my file .mod.
I had wrote a monetary union model with two open countries, with representative household, final goods producers, capital producers, financial intermediary, central bank, national government and federal authority. I have a productivity shock and my aim is to prove the efficiency of federal fiscal transfer to stabilize the economy conjoncturel. I had computed hand values of steady state and the model coherence is correct. But, an error message say that "dividion by zero". I audited each equation one by one and neither is divided by zero.
Do you know this problem? Someone may help me to resolve this problem.
Here is my file:

Re: Error. division by

PostPosted: Fri Sep 05, 2014 10:50 am
by jpfeifer
This seems to be a bug in Dynare's preprocessor. We will keep you posted.

Re: Error. division by

PostPosted: Fri Sep 05, 2014 1:41 pm
by Nicolas67
This is my english file. This version is very detailed (each variable, parameter or equation are explicated so if someone may help me, it is not complicated to understand my model).
thanks so much

Re: Error. division by

PostPosted: Mon Sep 15, 2014 3:36 pm
by HoutanBastani
Hi,

The problem is in equation 44 (and probably 45 as well) when converting to the static model:
Code: Select all
// transfer rule (part)
tauTH = ((YH-YH(-1))/YH(-1)) / (((YH-YH(-1))/YH(-1)) + ((YF-YF(-1))/YF(-1)));
tauTF = ((YF-YF(-1))/YF(-1)) / (((YF-YF(-1))/YF(-1)) + ((YH-YH(-1))/YH(-1)));

If you remove the lags, you have division by zero.