Version 4.1.1 problem with loglinear: warning divide by zero

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.

Version 4.1.1 problem with loglinear: warning divide by zero

Postby reluginbuhl » Wed Jun 09, 2010 11:17 am

I did not have this problem in version 4.0.4. Now in version 4.1.1 I receive the following message when I run the attached mod file.

Warning: Divide by zero.
> In dr1 at 417
In resol at 128
In dynare_resolve at 45
In DsgeSmoother at 70
In dynare_estimation_1 at 1090
In dynare_estimation at 62
In BNTnlc_nonS_PP at 155
In dynare at 132
Warning: Divide by zero.
> In dr1 at 419
In resol at 128
In dynare_resolve at 45
In DsgeSmoother at 70
In dynare_estimation_1 at 1090
In dynare_estimation at 62
In BNTnlc_nonS_PP at 155
In dynare at 132

Thank you for any help you can provide.
Attachments
NLc88Q109Q3.m
Here is the Dutch data used in the estimation.
(623 Bytes) Downloaded 67 times
BNTnlc_nonS_PP_steadystate.m
Here is the steady state routine for the estimation.
(9.8 KiB) Downloaded 73 times
BNTnlc_nonS_PP.mod
This is the mod file to perform the Bayesian estimation.
(1.82 KiB) Downloaded 275 times
reluginbuhl
 
Posts: 53
Joined: Wed Mar 04, 2009 2:41 pm

Re: Version 4.1.1 problem with loglinear: warning divide by zero

Postby SébastienVillemot » Thu Jun 10, 2010 9:07 am

This is because in Dynare 4.0 we were not displaying all warnings, but the division by zero was probably already present.

You not necessarily need to worry about that, it does not necessarily indicate a bug.
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: Version 4.1.1 problem with loglinear: warning divide by zero

Postby reluginbuhl » Thu Jun 10, 2010 1:23 pm

Ok. I will not worry about it. Thank you very much for the prompt response!
-Rob
reluginbuhl
 
Posts: 53
Joined: Wed Mar 04, 2009 2:41 pm

Re: Version 4.1.1 problem with loglinear: warning divide by zero

Postby reluginbuhl » Wed Aug 18, 2010 9:18 am

I have subsequently discovered that the dividends variable divai in my model is the culprit. The steady state value of this variable is zero. When Dynare works out the log-linearization of the model, this results in the divide by zero warning. With this variable substituted out of the model, the warning disappears.
reluginbuhl
 
Posts: 53
Joined: Wed Mar 04, 2009 2:41 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests