A simple question about residuals

Hi , everyone!

I face the following problem:

if i put the resid block before steady block, dynare always shows nonzero results,** and the steady states are different with what i have computed by hand**, though it really finished computation. Does it matter? What results in this? Hope you help me,Thank you!

Residuals of the static equations:

Equation number 1 : -6.1329e-005
Equation number 2 : 8e-006
Equation number 3 : 7.6963e-005
Equation number 4 : -1.0566e-005
Equation number 5 : -7.6206e-005
Equation number 6 : 0.00074312
Equation number 7 : 0.00014972
Equation number 8 : -5e-006
Equation number 9 : 0.00013995
Equation number 10 : 2.64e-006
Equation number 11 : 4.8389e-005
Equation number 12 : 0
Equation number 13 : -7.616e-005
Equation number 14 : -4.085e-007
Equation number 15 : -3.25e-005
Equation number 16 : -1e-005
Equation number 17 : 1e-005
Equation number 18 : -0.33952
Equation number 19 : 0
Equation number 20 : 9.7546
Equation number 21 : 0

Warning: Some of the parameters have no value (kss, kpp, yss, ypp, mm, yy, kmm, lpp, imm, cmm) when using steady. If these parameters are not initialized in a steadystate file,
Dynare may not be able to solve the model…

In test_for_deep_parameters_calibration at 46
In steady at 33
In yzx3 at 278
In dynare at 120
yzx3.mod (2.08 KB)

Since “resid” is before “steady”, it displays the residuals for the values given in “initval”.

Do you mean that in “initval” you put the steady state that you computed by hand? If this is the case, then it means that something is wrong with your hand-computed steady state (or alternatively with the model equations that you put in your MOD file).