Page 1 of 2

Impulse response graph about news shocks

PostPosted: Sat Nov 29, 2014 12:38 pm
by Grant
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.

Re: Impulse response graph about news shocks

PostPosted: Wed Dec 03, 2014 11:08 am
by jpfeifer
It looks as if all variables in your pdf move on impact of the news shocks, but that the impact response is just small.

Re: Impulse response graph about news shocks

PostPosted: Thu Dec 04, 2014 2:43 am
by Grant
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,

Re: Impulse response graph about news shocks

PostPosted: Thu Dec 04, 2014 4:29 pm
by jpfeifer
If your IRF violates the production technology, there must be a mistake.

Re: Impulse response graph about news shocks

PostPosted: Mon Dec 15, 2014 3:54 pm
by Grant
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,

Re: Impulse response graph about news shocks

PostPosted: Wed Dec 17, 2014 1:57 pm
by Grant
Anyone can help?

Re: Impulse response graph about news shocks

PostPosted: Thu Dec 18, 2014 4:39 pm
by jpfeifer
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)

Re: Impulse response graph about news shocks

PostPosted: Fri Dec 19, 2014 3:35 am
by Grant
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!

Re: Impulse response graph about news shocks

PostPosted: Fri Dec 19, 2014 8:05 am
by jpfeifer
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.

Re: Impulse response graph about news shocks

PostPosted: Fri Dec 19, 2014 2:36 pm
by Grant
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.

Re: Impulse response graph about news shocks

PostPosted: Fri Dec 19, 2014 3:00 pm
by jpfeifer
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.

Re: Impulse response graph about news shocks

PostPosted: Fri Dec 19, 2014 3:28 pm
by Grant
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.

Re: Impulse response graph about news shocks

PostPosted: Fri Dec 19, 2014 3:32 pm
by jpfeifer
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.

Re: Impulse response graph about news shocks

PostPosted: Fri Dec 19, 2014 4:24 pm
by Grant
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.

Re: Impulse response graph about news shocks

PostPosted: Fri Dec 19, 2014 4:26 pm
by jpfeifer
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.