Page 1 of 1

Residuals of the static equations

PostPosted: Wed Nov 11, 2015 7:02 am
by settler03
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]!

Re: Residuals of the static equations

PostPosted: Wed Nov 11, 2015 4:55 pm
by jpfeifer
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.