Time varying volatility

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.

Time varying volatility

Postby rob59404 » Thu Feb 02, 2012 6:56 pm

Hello,

I am simulating a DSGE model found in this paper http://mpra.ub.uni-muenchen.de/14977/1/mw33.pdf but am including second moment shocks to TFP. When I do a second third order approximation my IRFs are not smooth. I know this issue has come up before, for instance in this thread: viewtopic.php?f=1&t=2829. However, when I implemented Dr. Juillard's code, the constructed impulse responses have the variables not reverting to steady state. Is there a way to fix this? I know for higher order approximations Dynare draws a series of shocks for 140 periods. Is there a way to increase the number of periods and perhaps smooth out the IRFs? I've attached the code with the IRFs computed both ways. Thanks for the help.
Attachments
fixed_costs_second_mom.mod
(1.73 KiB) Downloaded 179 times
rob59404
 
Posts: 6
Joined: Thu Feb 02, 2012 6:36 pm

Re: Time varying volatility

Postby SébastienVillemot » Mon Feb 13, 2012 5:25 pm

The cause of your problem comes from the fact that you did not call "steady", so oo_.steady_state does not contain the steady state.

Either call "steady" before "stoch_simul", or use "oo_.dr.ys" instead of "oo_.steady_state" in your calculations at the end of the MOD file. When doing the former, I get an almost flat (up to 1e-5) IRF for consumption, which is reasonable from a computational point of view (I don't know if this is from an economic point of view, I did not study your model).

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: Time varying volatility

Postby rob59404 » Wed Feb 15, 2012 8:02 pm

Whoops, silly mistake. Thanks for the response!
rob59404
 
Posts: 6
Joined: Thu Feb 02, 2012 6:36 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests