Residual of equation ... is equal to NaN

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.

Residual of equation ... is equal to NaN

Postby Andrea » Fri Feb 05, 2010 4:54 pm

Dear all,

I'm approaching the estimation with dynare, and I'm encountering some difficulties.

I tried to simulate a small model and then to estimate its parameters via maximum likelihood using 3 series obtained by the simulation.

If I slightly move the initial value of the parameters from the "true" one, estimation fails: estimates are far
from the peaks in the mode_check plots and, if I check the residuals, I receive the following message:

Residual for equation number 1 is equal to NaN
Residual for equation number 2 is equal to NaN
Residual for equation number 3 is equal to NaN
Residual for equation number 4 is equal to NaN
Residual for equation number 5 is equal to NaN
Residual for equation number 6 is equal to 0
Residual for equation number 7 is equal to NaN
Residual for equation number 8 is equal to NaN
Residual for equation number 9 is equal to NaN

What should I check?
Many thanks for any suggestion.
Best,

Andrea

UPDATE: I found my mistakes:
1) I didn't declare parameters values before the model, thus I got NaNs;
2) I didn't compute the analytical steady state.
Andrea
 
Posts: 6
Joined: Thu Nov 12, 2009 2:06 pm

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests