problems with changing time lag

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.

problems with changing time lag

Postby blackeif » Sun Aug 08, 2010 3:45 pm

thanks for jpfeifer's help and after adjust parameters and some linear equations,the machine can run the dynare code.however i am puzzled that the code works only after some linear equations changing their time lag,e.x changing the original equation"phai*(Q(-1)+ku-nu)-S(-1) = 0;" to "phai*(Q+ku(+1)-nu(+1))-S = 0;",i think the two equations should be the same but the fact is only the second one can make dyanre code work. could somebody tell me the reason for it?
the original(BGGNPC3) and adjusted(BGGNPC4) mod files are as follows.
Attachments
BGGNPC4.mod
the adjusted(BGGNPC4) mod files
(1.63 KiB) Downloaded 57 times
BGGNPC3.mod
the original(BGGNPC3) mod files
(1.51 KiB) Downloaded 56 times
blackeif
 
Posts: 31
Joined: Mon Apr 27, 2009 5:19 pm

Re: problems with changing time lag

Postby jpfeifer » Sun Aug 08, 2010 5:36 pm

I am not sure what you mean with "make Dynare run", but I guess it relates to eigenvalues. I am not 100% sure, what's the answer to your question, but I have a guess. Although the both equations look similar as one is the other shifted by one time lag, there is an important difference, considering that we are taking expectations conditional on time t. The equation shifted by one lag is then deterministic as all variables involved are known at time t when we take expectations (similar to a law of motion for capital, where k_t+1 is already predetermined at time t). In contrast, the second equation involves ku(+1) and nu(+1) which are not known at time t.
------------
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: problems with changing time lag

Postby MichelJuillard » Sun Aug 08, 2010 7:59 pm

This is correct. Dynare puts an implicit conditional expectation at time t in front of an equation member containing variables with leads. So the first equation is indeed

phai*(Q_(t-1)+ku_t-nu_t)-S_(t-1) = 0

but the second one is

E_t{phai*(Q_t+ku_(t+1)-nu_(t+1))-S_t} = 0

and is not equivalent to the first one.

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Re: problems with changing time lag

Postby blackeif » Mon Aug 09, 2010 10:03 am

thanks for both of you,now i know the difference between the two equations,thank you
blackeif
 
Posts: 31
Joined: Mon Apr 27, 2009 5:19 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests