Undefined function or variable

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.

Undefined function or variable

Postby S_V » Sun Mar 12, 2017 6:04 pm

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.
Attachments
cycle irf issue.zip
(37.01 KiB) Downloaded 68 times
S_V
 
Posts: 26
Joined: Tue Nov 15, 2016 11:38 am

Re: Undefined function or variable

Postby jpfeifer » Sun Mar 12, 2017 7:04 pm

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Undefined function or variable

Postby S_V » Mon Mar 13, 2017 3:48 pm

Many thanks Prof. Pfeifer.
S_V
 
Posts: 26
Joined: Tue Nov 15, 2016 11:38 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests