Hi,
I'm trying to simulate a deterministic model using dynare 4.2.5 for my master thesis. The problem is that the model does not seem to converge:after one iteration, i get the following error message:
Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate.
RCOND = NaN.
> In sim1 at 84
In simul at 93
In tesi1G at 228
In dynare at 120
Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate.
RCOND = NaN.
> In sim1 at 84
In simul at 93
In tesi1G at 228
In dynare at 120
Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate.
RCOND = NaN.
> In sim1 at 84
In simul at 93
In tesi1G at 228
In dynare at 120
Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate.
RCOND = NaN.
.....
.....
when i write resid(1) in the .mod file, i get the following errors, which seem to me quite small:
Residuals of the static equations:
Equation number 1 : 0
Equation number 2 : 0
Equation number 3 : 0
Equation number 4 : 0
Equation number 5 : 0
Equation number 6 : 0
Equation number 7 : 0
Equation number 8 : 0.00056463
Equation number 9 : -0.0091254
Equation number 10 : 0
Equation number 11 : 0.0015055
Equation number 12 : 0
Equation number 13 : 0
I suspect that either i give wrong initial values, or the model is wrong. Either case, I really need your help because I checked an insanely large number of times the .mod file and the .m file I use to compute the steady state(STEADYBtesi.m), and I cannot find where the error is and why I get those residuals (and if they are the cause to my problem.....). Could you please take a look at them (especially the .mod file) to see if the model block is mispecified, or there are other mistakes?
The model is quite simple so you don't need to spend a lot of time in checking it.
Since I'm quite new to Dynare, any suggestion regarding the writing of the .mod file would be strongly appreciated. thank you.
Cristiano