Problems "The steady state contains NaN or Inf "

Hi professor,

please could you have a check of the mod file:
it worked fine when producing IRFs,but reported errors with estimation:

Warning: Matrix is singular to working precision.

In evaluate_steady_state (line 263)
In resol (line 104)
In stoch_simul (line 89)
In money (line 595)
In dynare (line 235)

Error using print_info (line 90)
The steady state contains NaN or Inf

Error in stoch_simul (line 100)
print_info(info, options_.noprint, options_);

Error in money (line 595)
info = stoch_simul(var_list_);

Error in dynare (line 235)
evalin(‘base’,fname) ;
datauk.xls (101.5 KB)

m.mod (17.1 KB)
see attached the mod file “m”

Your mod-file is not suitable for estimation. You need to handle parameter dependence correctly and you should use a steady_state_model-block. See e.g. https://github.com/JohannesPfeifer/DSGE_mod/blob/master/Smets_Wouters_2007/Smets_Wouters_2007_45.mod

1 Like