Epstein-Zin preference

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.

Epstein-Zin preference

Postby paretoe7 » Fri Nov 26, 2010 4:57 am

Hi, I a beginner of Dynare. I coded the Epstein-Zin preference model using the paper by Caldara et al., 'Computing DSGE Models with Recursive Preferences'.[http://www.econ.upenn.edu/~jesusfv/EZcomparison.pdf]

Can someone check if this coding is correct? Especially I really don't know "EXPECTATION(0)(v(+1)^(1-gamma))" is a right syntax for EXPECTATION operator.

Thanks.
Attachments
model.pdf
Model
(51.62 KiB) Downloaded 431 times
EZ.mod
(1.13 KiB) Downloaded 400 times
paretoe7
 
Posts: 1
Joined: Fri Nov 12, 2010 4:05 am

Re: Epstein-Zin preference

Postby SébastienVillemot » Mon Jan 10, 2011 5:41 pm

EXPECTATION(0)(...) is basically useless, because it consists in taking the expectation with the current date, which is implicit in Dynare.
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: Epstein-Zin preference

Postby jpfeifer » Mon Jul 25, 2011 2:04 pm

Hi, note that the used FOCs taken from the mentioned paper are wrong. The correct ones are in the "The Term Structure of Interest Rates in a DSGE Model with Recursive Preferences"-Paper.
------------
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: Epstein-Zin preference

Postby mtpuglia » Wed Apr 09, 2014 7:45 pm

Hi Johannes, do you (or anyone else on this forum) have Dynare code for "The Term Structure of Interest Rates in a DSGE Model with Recursive Preferences" that you mention here? I'm having some problems getting the system to solve in Dynare, mainly due to my handling (or lack thereof) of the unit root in the model I think. The parameters estimated in the paper also seem to cause the steady-state calculation to fail sometimes, even when a steady_state_model block is used.

If you don't have any code but a few pointers that would be much appreciated too. I have been working on this long enough with no progress to safely say that I am stuck and don't know how to proceed. I've attached my code if you or anyone else cares to look. One version presents the model detrended by technology, and the other present the detrended model, in log-deviations from steady-state.

neoez_ld.mod
de-trended model in log-deviations from ss
(6.45 KiB) Downloaded 150 times

neoez.mod
de-trended model
(7.06 KiB) Downloaded 163 times


Best Regards,

mtp
mtpuglia
 
Posts: 8
Joined: Tue Jun 11, 2013 11:25 am

Re: Epstein-Zin preference

Postby jpfeifer » Thu Apr 10, 2014 5:22 pm

As far as I know there is no mod-file for this one. Given that your steady state already solves, the non-linear file looks promising. There is no eigenvalue of one in the model, so there is no immediate problem with a unit root (and even if that were the case, you could ignore it for the moment). Given that
There are 19 eigenvalue(s) larger than 1 in modulus
for 25 forward-looking variable(s)

it seems there is some fundamental error. What puzzles me is that there is no growth factor from detrending showing up. So it seems your detrending was incorrect. I would focus on that. See also Section 5 "Models with Explicitly Specified Trend" in Pfeifer(2013): "A Guide to Specifying Observation Equations for the Estimation of DSGE Models" https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf.

An additional note: a mod-file for Caldara et al. (2012) "Computing DSGE Models with Recursive Preferences" can be found on my homepage.
------------
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: Epstein-Zin preference

Postby mtpuglia » Thu Apr 10, 2014 11:11 pm

Thank you for the pointers. I'm still not sure what I'm missing. I verified the system presented in the paper's appendix and double-checked my code several times. I also checked timing conventions and they seem to be right. If I calibrate the model to the results in the paper, though, the steady state does not solve. If the IES is dialed back it does solve however, so maybe the value function or the SDF is not getting detrended properly? I'll have to think about that.

I can't find the Caldara code on your website that you refer to? Am I missing that one as well? I notice the Epstein-Zin preferences are specified a little differently in that paper, so maybe that will help me sort the problem out?

Thanks again for the help. It is most appreciated.

Best Regards,

MTP
mtpuglia
 
Posts: 8
Joined: Tue Jun 11, 2013 11:25 am

Re: Epstein-Zin preference

Postby jpfeifer » Fri Apr 11, 2014 5:30 am

A few things:
1. Try to get the file to run completely for the special case of CRRA log utility first. This is usually much easier. Then go from there.
2. Please make use of Dynare's LaTeX-capabilities to let Dynare output the dynamic model, i.e. use write_latex_dynamic_model. This allows for an easier comparison.
3. The missing mod-file is now online. My mistake.
4. For extreme curvature, solving steady states is not easy because the numerical errors may become large.
5. Keep me posted, but I will only be able to look at it thoroughly in May.
------------
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: Epstein-Zin preference

Postby flash » Wed Apr 23, 2014 1:04 pm

Hello, i am a beginner in Dynare++ (4.2.1) and Dynare (4.4.2). I am replicating a paper "Fiscal Policies and Asset Prices" by Croce, Kung, Nguyen, Schmid (RFS, 2012). To be more precise currently i am working on model 3 for the case with leverage and debt adjustment cost (fig 1 page 14 - black line with circles). I got a wrong IRF for SDF with Epstein Zin Utility and i feel that the problem is in the way i write the value function, even though i followed the suggestions jpfeifer and i wrote it as in Caldaraetal2012.mod. Could anyone please have a look? may be it's an obvious mistake that i do, but i am really stuck with it. Thank you very much in advance. I upload both .mod file and also .m file for building IRF.
Attachments
PLOT_GRAPH.m
(1.33 KiB) Downloaded 113 times
rbc_cost.mod
(3.72 KiB) Downloaded 162 times
flash
 
Posts: 1
Joined: Wed Apr 23, 2014 12:43 pm


Return to Dynare help

Who is online

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