Page 1 of 1

Undefined function or variable

PostPosted: Sun Mar 12, 2017 6:04 pm
by S_V
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.

Re: Undefined function or variable

PostPosted: Sun Mar 12, 2017 7:04 pm
by jpfeifer
Your initial value for
Code: Select all
tau_ub              = log(tau_ub_SS);

is complex, because
Code: Select all
tau_ub_SS =   -0.7112

Because you use
Code: Select all
noprint

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.

Re: Undefined function or variable

PostPosted: Mon Mar 13, 2017 3:48 pm
by S_V
Many thanks Prof. Pfeifer.