Undefined function or variable

Dear All,

I am getting this error when I try to run the cycle_irf.mod file (attached):

Undefined function or variable ‘cmdata_epsZ’

There doesn’t seem to be any strange files appearing after running the file as I’ve seen in the forum could be a potential source of the problem.

However, I look in oo_ it appears the steady state values are complex numbers which I don’t think should be the case. I’m not entirely sure what is going on.

Thanks in advance for the help.
cycle irf issue.zip (37 KB)

Your initial value for

tau_ub = log(tau_ub_SS);
is complex, because

Because you use

Dynare will not provide an error message, but the IRF you try to plot will not exist, because the steady state could not be found. The reason is that Newton-type optimizers do not easily work in the complex plane.

Many thanks Prof. Pfeifer.