Sums in dynare code & variables t+1

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.

Sums in dynare code & variables t+1

Postby Nicole » Tue Apr 05, 2016 8:46 am

Hello,

I'm pretty new with Dynare and am trying to reproduce some results from the article of Cochrane (2015; do interest rates raise or lower inflation). However, I'm having trouble putting two equations (with sums) into dynare code. I have read multiple posts already regarding sums as well as an article of Verona & Wolters (2013) regarding sticky information models in dynare. However I can't really seem to figure it out. Hopefully someone would be able to help me! I've attached the two equations below.

I have also attached my .mod file for reference with what I have up to now - it's the very basic two equation version of the model, which needs to be extended with the said equations. This leads me to another question - do I need to add the Xt+1 and Phi t+1 as separate variables since I will be defining them with seperate equations in the model block? Or not?

Thank you very much in advance.
Attachments
Equations Cochrane (2015).pdf
(89.34 KiB) Downloaded 76 times
Cochrane2.mod
(314 Bytes) Downloaded 56 times
Nicole
 
Posts: 10
Joined: Tue Apr 05, 2016 8:25 am

Re: Sums in dynare code & variables t+1

Postby jpfeifer » Tue Apr 05, 2016 7:26 pm

Sorry, but I am not familiar with that model. But generally, you have to write the infinite sums recursively/find a state variable that captures them. See http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=5652
I don't know if that is even possible in Cochrane's model
------------
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: Sums in dynare code & variables t+1

Postby Nicole » Wed Apr 06, 2016 8:00 am

Thank you! One other quick question though: in a rational expectations model, so that pi(+1) is known, you do not need to add anything else in the code of the model, correct?

So if it in the equation in the article says:
Pi = Beta * Expectation*pi(+1) + K*x

you can write in the dynare code:
Pi= Beta * Pi (+1) + K*x

Is this correct or should I still work with the EXPECTATION command? Or is this only neccesary in case of backward looking expectations?
Nicole
 
Posts: 10
Joined: Tue Apr 05, 2016 8:25 am

Re: Sums in dynare code & variables t+1

Postby jpfeifer » Fri Apr 08, 2016 7:54 am

Rational expectations does not mean pi(+1) is known, but rather that a model-consistent expectation needs to be formed. When you use a timing (+1) Dynare understands that you mean the expectation is there. The EXPECTATION-operator is not needed. You need it for dealing with complicated functions of expectations, e.g. in the case of Epstein-Weil-Zin preferences.
------------
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 10 guests