Residuals of the static equations

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.

Residuals of the static equations

Postby settler03 » Wed Nov 11, 2015 7:02 am

I solve a model and write code but when run receive following error:

heck whether your model in truly linear




Residuals of the static equations:

Equation number 1 : 0
Equation number 2 : 0
Equation number 3 : 0
Equation number 4 : NaN
Equation number 5 : 0
Equation number 6 : NaN
Equation number 7 : NaN
Equation number 8 : NaN
Equation number 9 : NaN
Equation number 10 : NaN
Equation number 11 : 0
Equation number 12 : NaN
Equation number 13 : 0
Equation number 14 : 0

please help
thanks[code][/code]!
Attachments
stock.mod
(2 KiB) Downloaded 76 times
settler03
 
Posts: 17
Joined: Wed Nov 07, 2012 7:16 pm

Re: Residuals of the static equations

Postby jpfeifer » Wed Nov 11, 2015 4:55 pm

You need to move the definition of A=1 before you use A in
Code: Select all
y_bar   =   A*h_bar*((KY_bar)^(alpha/(1-alpha)));

Apart from this, you are neglecting Dynare's timing convention for predetermined states like capital. See the manual.
------------
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 12 guests