Impulse response graph about news shocks

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.

Impulse response graph about news shocks

Postby Grant » Sat Nov 29, 2014 12:38 pm

Dear Jpfeifer,

I use dynare to solve my model with multiple news shocks. I define news shocks consisting of a 4 period component and 8 period component as Schmitt-Grohe and Uribe (2012) and your recent paper "Fiscal news and macroeconomic volatility" in JEDC. After Bayesian estimation, I compare the relative importance of unanticipated and news shocks. Everything goes well. However, I find the impulse response graphs for news shocks seems to be odd. Some endogenous variables do not respond at the beginning until several periods later, but some endogenous variables respond to news shock at the first period.Could you tell what's wrong with it? How to solve the problem? Here attached the graph for a 8-period news shock, and the code and data file.

Thanks in advance.
Attachments
data100.xls
(39.5 KiB) Downloaded 119 times
code.mod
(10.98 KiB) Downloaded 186 times
irf_ac8.pdf
(18.53 KiB) Downloaded 207 times
Grant
 
Posts: 95
Joined: Tue Jun 10, 2014 2:37 pm

Re: Impulse response graph about news shocks

Postby jpfeifer » Wed Dec 03, 2014 11:08 am

It looks as if all variables in your pdf move on impact of the news shocks, but that the impact response is just small.
------------
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: Impulse response graph about news shocks

Postby Grant » Thu Dec 04, 2014 2:43 am

Dear Jpfeifer,

Thanks for your answer. Another question: My model is a standard DSGE model with price ridigity. The intermediate goods firm operates as the C-D function with labor as the only input, the final goods firm operates as the CES function. Since I introduce news shock, I find that the impulse response to the TFP news shock is odd. Given a news shock to TFP, hours of work decrease, but output increase. Labor is the only input, and news shock does not realized eventually. How to explain this impulse response? Does it mean that there must be something wrong with my model?

Regards,
Grant
 
Posts: 95
Joined: Tue Jun 10, 2014 2:37 pm

Re: Impulse response graph about news shocks

Postby jpfeifer » Thu Dec 04, 2014 4:29 pm

If your IRF violates the production technology, there must be a mistake.
------------
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: Impulse response graph about news shocks

Postby Grant » Mon Dec 15, 2014 3:54 pm

Dear Jpfeifer,

Thanks for your comments. I have double checked the model equations and code and find nothing wrong. Could you help me check whether the way I define news shocks in the code is correct?

Regards,
Grant
 
Posts: 95
Joined: Tue Jun 10, 2014 2:37 pm

Re: Impulse response graph about news shocks

Postby Grant » Wed Dec 17, 2014 1:57 pm

Anyone can help?
Grant
 
Posts: 95
Joined: Tue Jun 10, 2014 2:37 pm

Re: Impulse response graph about news shocks

Postby jpfeifer » Thu Dec 18, 2014 4:39 pm

Could provide a clean calibrated mod-file with only the TFP news and at least some variable names. I don't even know where to look for the Cobb-Douglas function.

Moreover, if you have price rigidities, sometimes there are price dispersion or price adjustment costs that make net output fall today if firms react to news shocks. Could this mechanism be at play (I don't know your 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: Impulse response graph about news shocks

Postby Grant » Fri Dec 19, 2014 3:35 am

Dear Jpfeifer,

Thanks for your answer. The wholesale firm only operates according to a C-D function with only labor input and technology, thus shown in my code as : y_c = a_c + n_c after log-linearization. The retail firm operates according to a CES function. Could you explain the mechanism about news shock? I indeed have price rigidity in my model, but I don't allow for price adjustment cost.

Thanks a lot!
Grant
 
Posts: 95
Joined: Tue Jun 10, 2014 2:37 pm

Re: Impulse response graph about news shocks

Postby jpfeifer » Fri Dec 19, 2014 8:05 am

When I plot to the IRFS of y_c, n_c, and a_c to epsa_c8, output exactly increases by as much as labor. Thus, everything is correct.
------------
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: Impulse response graph about news shocks

Postby Grant » Fri Dec 19, 2014 2:36 pm

Dear Jpfeifer,

Thanks for your help. My model include the durable goods sector and non-durable goods sector. Both sectors shares the same production structure. y_c means the non-durable and y_d means the durable. However, the IFR generated by dynare shows that y_c increase but n_c decrease. And, the aggregate y increase while the aggregate labor n1 decrease. How did you plot the IRF? Here attached my IRF for all the variables. I know this may take you a bit more time, thanks a lot! This is my Ph.D thesis, I really hope I can get your answer.
Attachments
irf.pdf
(18.75 KiB) Downloaded 145 times
Grant
 
Posts: 95
Joined: Tue Jun 10, 2014 2:37 pm

Re: Impulse response graph about news shocks

Postby jpfeifer » Fri Dec 19, 2014 3:00 pm

Sorry, but I still cannot see any contradiction. During the anticipation phase, i.e. the first four periods before the news shock realizes labor n_c and y_c perfectly comove as expected. This must be the case, because exogenous technology is still unaltered. When technology finally jumps up after 4 periods when the shock realizes, labor falls. But because technology increases by more than labor falls, output can still increase. Essentially, the wealth effect kicks in: the houshold consumes more of consumption and leisure.
------------
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: Impulse response graph about news shocks

Postby Grant » Fri Dec 19, 2014 3:28 pm

Dear Jpfeifer,

Thanks for your quick answer. But in my last attached IRF, y_c and n_c do not co-move. They indeed move in opposite direction. The diagram is generated by dynare. I think this is the contradiction.

Besides, are news shocks defined in my code correct? My intention is to introduce both unanticipated shock and news shock in my model, and the news shocks do not realise eventually.

Thanks a lot.
Grant
 
Posts: 95
Joined: Tue Jun 10, 2014 2:37 pm

Re: Impulse response graph about news shocks

Postby jpfeifer » Fri Dec 19, 2014 3:32 pm

Please have a look at my JEDC paper to see the difference between the anticipation phase and the realization. Your shock is 4 periods anticipated. During the first 4 periods y_d and n_c perfectly comove (they increase by a tiny bit). After 4 periods, the anticipated shock finally realizes and a_c (or how you call it) moves. At this point, there is no reason for positive comovement of y_c and n_c, because
y_c=n_c+a_c;

And yes, your news shocks are correct. You can compare them to the RBC model with news shocks 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: Impulse response graph about news shocks

Postby Grant » Fri Dec 19, 2014 4:24 pm

Dear Jpfeifer,

Thanks for your explicit explanation. Since my way of defining news shock is correct, the IRF to a_c 4 and a_c8 in my code means that they are anticipated shocks and realise eventually, right? If my understanding is right, how can I plot the IRF of news shock which does not realise eventually?

Thanks a lot.
Grant
 
Posts: 95
Joined: Tue Jun 10, 2014 2:37 pm

Re: Impulse response graph about news shocks

Postby jpfeifer » Fri Dec 19, 2014 4:26 pm

Yes. Your shocks are defined to realize 4 or 8 periods after their announcement.

There is an example mod-file for pure news shocks on my personal 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

Next

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 13 guests