A problem with steady state

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.

A problem with steady state

Postby nastforest » Fri Aug 12, 2016 8:37 am

Hello,

Some of my model's equations (number 16 and 17, the mod file is attached) contain the same variable ('BB') on both the LHS (BB(+1)) and the RHS (BB). These variables are supposed to be cancelled out in steady state. However, it seems not to happen: dynare prints the error message, saying "Impossible to find the steady state. Either the model doesn't have a steady state, there are an infinity of steady states, or the guess values are too far from the solution".
The problem is solved once the ''kappa_b" parameter is set to 2 (instead of 10 as in the baseline version).

Could you please help me to understand what's happening here and why the variables are not cancelled out for the purpose of steady state?
Thanks a lot in advance!
Attachments
nkm_stst.mod
(1.88 KiB) Downloaded 47 times
nastforest
 
Posts: 10
Joined: Sat Jan 11, 2014 5:26 pm

Re: A problem with steady state

Postby jpfeifer » Fri Aug 12, 2016 9:50 am

This is a numerical issue related to under/overflow. Already for kappa=3 creates a multiplication in the computer of something in the order of 1e15 with something 1e-4. The resulting numerical error is bigger than the steady state tolerance. Consider this: your BB is -1.981e-05. With kappa=-10, BB^(-kappa)= -5E4^10=1E47. The computer cannot handle operations with a value like this.
See Mccullough/Vinod (1999): "The Numerical Reliability of Econometric Software" for general background information.
------------
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

Re: A problem with steady state

Postby nastforest » Mon Aug 15, 2016 8:37 am

Dear Johannes, thank you for the explanation and for the reference. Do you think there is any way to circumvent this under/overflow issue? May be an alternative model calibration?
Thank you in advance!
nastforest
 
Posts: 10
Joined: Sat Jan 11, 2014 5:26 pm

Re: A problem with steady state

Postby jpfeifer » Mon Aug 15, 2016 11:50 am

You might be able to circumvent this by entering this equation in logs. This will turn the problematic power function into a product (of course this does not work if BB is 0).
------------
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

Re: A problem with steady state

Postby nastforest » Tue Aug 16, 2016 6:35 am

It worked perfectly, thank you very much for the idea!
nastforest
 
Posts: 10
Joined: Sat Jan 11, 2014 5:26 pm


Return to Dynare help

Who is online

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