Problem using model_diagnostics

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.

Problem using model_diagnostics

Postby npn » Sat Feb 15, 2014 1:21 am

Hi,

I have the usual problem that I have too many eigenvalues greater than 1 than the number of forward looking variables. One eigenvalue is complex, so that might be the problem. I tried using model_diagnostics(M_,options_,oo_) after running dynare to see what the problem is but I get nothing (completely blank screen). All the inputs for the model_diagnostics function exist after I've run dynare, so do you have any idea of what hte problem would be? My mod file is attached, but I initialize variables using a .mat file and I'm not able to upload it directly, so that's in the zip file.

Thanks!
Attachments
dynarehelp.zip
(2.61 KiB) Downloaded 56 times
capitalflows.mod
(12.92 KiB) Downloaded 80 times
npn
 
Posts: 4
Joined: Thu Nov 15, 2012 1:35 am

Re: Problem using model_diagnostics

Postby jpfeifer » Sat Feb 15, 2014 3:06 pm

If there are no problems that model_diagnostics is able to detect, there is no output (this will change in the future).

Complex eigenvalues are common and usually not the source of problems (unless your IRFs start oscillating).

As always when the BK-conditions are not satisfied, check the timing and the parametrization.
------------
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: Problem using model_diagnostics

Postby npn » Sat Feb 15, 2014 3:18 pm

Thanks.
npn
 
Posts: 4
Joined: Thu Nov 15, 2012 1:35 am

Re: Problem using model_diagnostics

Postby npn » Sat Feb 15, 2014 5:36 pm

Hi,

I found a timing issue and sorted it out, and simplified the model a bit. I now get this error:
There are 31 eigenvalue(s) larger than 1 in modulus
for 31 forward-looking variable(s)

The rank conditions ISN'T verified!

When I run model diagnostics, though, I get the following:
model_diagnostics(M_,options_,oo_
|
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.

I've been through the file, and there are no unbalanced brackets. In general I thought Dynare doesn't even run if there were unbalanced brackets. Is it a problem with the Jacobian but this is the output associated with that in model_diagnostics? I looked at the code here:
http://www.dynare.org/dynare-matlab-m2h ... stics.html

and I don't see what error would trigger exactly the message I received. Would you be able to help with this? (I'm trying to understand the source of the error, if it is actually the Jacobian or if I have a Walras law problem or if it is actually an unbalanced bracket)

Thanks
npn
 
Posts: 4
Joined: Thu Nov 15, 2012 1:35 am

Re: Problem using model_diagnostics

Postby jpfeifer » Sat Feb 15, 2014 5:41 pm

From what I see, you are missing the closing bracket of
Code: Select all
model_diagnostics(M_,options_,oo_)
------------
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: Problem using model_diagnostics

Postby npn » Sat Feb 15, 2014 5:46 pm

Oh, sorry. That was pretty stupid. Thanks anyway, have a good weekend.
npn
 
Posts: 4
Joined: Thu Nov 15, 2012 1:35 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 7 guests