The model doesn't determine the current variables uniquely

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.

The model doesn't determine the current variables uniquely

Postby rosa.28 » Tue Jun 18, 2013 1:10 pm

hi,

I'm trying to run a small open economy model in which there are shocks to the trend of productivity, transitory shocks, world interest shocks and to the country risk (i'm trying to nest aguiar and gopinath model (2006) with neumeyer and perri model (2005) but i keep getting this error

Error using print_info (line 33)
The model doesn't determine the current variables uniquely

Error in check (line 76)
print_info(info, options.noprint);

Error in taak (line 216)
oo_.dr.eigval = check(M_,options_,oo_);

Error in dynare (line 120)
evalin('base',fname) ;


i've checked the equations several times and i just can't figure out what is not working. i'll really appreciate any help

Rosa
Attachments
model.mod
(2.27 KiB) Downloaded 98 times
rosa.28
 
Posts: 3
Joined: Tue Jun 18, 2013 12:51 pm

Re: The model doesn't determine the current variables unique

Postby jpfeifer » Tue Jun 18, 2013 2:28 pm

Your equations are wrong. I guess
Code: Select all
z = z(-1)^rho_z * exp(e_z) ;

should by
Code: Select all
z = rho_z*z(-1) + e_z ;

As you defined z to be the log already. Otherwise, z has steady state 0. The derivative with respect to z(-1) will be z(-1)^(0.01-1)=1/z(-1)^0.9. But z has steady state 0. Thus 1/z(-1)^0.9=1/0=Inf. This yields the error.
------------
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: The model doesn't determine the current variables unique

Postby rosa.28 » Tue Jun 18, 2013 9:54 pm

Thanks!!! i corrected the mistake but is still not working, any other ideas why this isn't working?
Cheers

Rosa
rosa.28
 
Posts: 3
Joined: Tue Jun 18, 2013 12:51 pm

Re: The model doesn't determine the current variables unique

Postby jpfeifer » Wed Jun 19, 2013 6:14 am

This also applies to the other laws of motions. Have you also corrected them. If yes, post the new mod-file
------------
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: The model doesn't determine the current variables unique

Postby rosa.28 » Wed Jun 19, 2013 4:25 pm

The correction on the shocks solved that problem, however now i'm having troubles with the blanchard and Kahn condition.
I've found some mistakes on the model which i already corrected but i still can't figure out which equation is wrong.

thanks so much for your help!

Rosa
Attachments
model.mod
(2.19 KiB) Downloaded 97 times
rosa.28
 
Posts: 3
Joined: Tue Jun 18, 2013 12:51 pm

Re: The model doesn't determine the current variables unique

Postby jpfeifer » Wed Jun 19, 2013 6:44 pm

This most probably means that you still have a timing problem somewhere.
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests