Shocks in historical decomposition graphs too volatile

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.

Shocks in historical decomposition graphs too volatile

Postby pepito_bm » Tue Feb 28, 2017 2:47 pm

Hi there,

I've estimated a NK model with housing and the estimation results seem to be OK. However, I never managed to understand why the shocks in the historical decomposition graphs look way off the chart. Basically one cannot really expect that they are in reality so volatile and in my view, some of them look serially correlated. Rather, I guess the model adjusts them in such a way as to fit the smoothed variables. Any idea why this might be happenning? One of our co-authors believes it might be due to the lack of capital investment in the model (we've got only housing investment, but no capital in the production function), but I'm not quite sure whether that's really the reason but rather a technical issue maybe.

You can find attached the historical decomposition graphs as well as a pdf file with all possible graphs and tables (mode check plots, convergence plots, variance decomposition table, etc.).

Thank you very much in advance,
Best,
Petar
Attachments
TABLERUN1.pdf
All results
(620.83 KiB) Downloaded 125 times
Historical decomposition graphs.pdf
Historical decomposition graphs
(325.31 KiB) Downloaded 158 times
pepito_bm
 
Posts: 20
Joined: Mon Aug 25, 2014 4:10 pm

Re: Shocks in historical decomposition graphs too volatile

Postby jpfeifer » Tue Feb 28, 2017 3:07 pm

I would focus on trying to understand what is going on with
Code: Select all
rhmud

Just look at its mode_check and prior/posterior plots. There must be something wrong, because it almost gets a unit root. Did you use
Code: Select all
prior_trunc=0
?
the large persistence in this shock, visible in the IRFs to e_mud might also explain why you get such large swings.
------------
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: Shocks in historical decomposition graphs too volatile

Postby pepito_bm » Tue Feb 28, 2017 3:44 pm

Hi Jochannes,
Thank you for the prompt reply. So basically the "muc" and "mud" are stochastic processes for the cost-push shocks in both NK Phillips Curves for house prices and for consumption prices in the spirit of Smeths and Wolters 2007. It's a bit strange that the autoregressive parameter of the stochastic process for the first Phillips curve is well identified, whereas the second one isn't. I'm not doing anything special regarding the stochastic processes, they're all AR(1). I multiply all observables by 100 but that shouldn't have any impact I guess.

I haven't "prior_trunc=0" so far neither have I come accross it, but thatks for the suggestion, I will give it a try to see what will happen.

Please find attached my dyanre code and an updated table, I have a MATLAB code which generates a LaTeX one so sometimes the titles don't quite match. Now everything should be all right regarding the table.

Best,
Petar
Attachments
modellast1.mod
dynare code
(6.36 KiB) Downloaded 104 times
TABLERUN1.pdf
Results (corrected table)
(623.21 KiB) Downloaded 84 times
pepito_bm
 
Posts: 20
Joined: Mon Aug 25, 2014 4:10 pm

Re: Shocks in historical decomposition graphs too volatile

Postby jpfeifer » Tue Feb 28, 2017 5:27 pm

The data is missing.

You should try the LaTeX capabilities of the Dynare unstable version. It automates most of what you are doing.
------------
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: Shocks in historical decomposition graphs too volatile

Postby pepito_bm » Tue Feb 28, 2017 5:47 pm

Sorry, forgot to upload it.

So here’s how I do the variable transformation.
1. Variables such as output, consumption, real housing investment and total hours worked I first logarthimize, then detrend using the one-sided HP filter, then multiply the cyclical component by 100 and use it as an observable.
2. The Interest rate I first transform it into quarterly series (1 + Rannual/(4*100)), then take the log of it and finally demean it.
3. Inflation rates I only demean.

Hope what I'm doing is OK.
pepito_bm
 
Posts: 20
Joined: Mon Aug 25, 2014 4:10 pm

Re: Shocks in historical decomposition graphs too volatile

Postby pepito_bm » Tue Feb 28, 2017 5:50 pm

Now have to figure out what extension is allowed. Just a second.
pepito_bm
 
Posts: 20
Joined: Mon Aug 25, 2014 4:10 pm

Re: Shocks in historical decomposition graphs too volatile

Postby pepito_bm » Tue Feb 28, 2017 5:53 pm

There you go. And again many thanks.
Attachments
dataset_nz.xls
observables + rawdata
(77 KiB) Downloaded 96 times
pepito_bm
 
Posts: 20
Joined: Mon Aug 25, 2014 4:10 pm

Re: Shocks in historical decomposition graphs too volatile

Postby jpfeifer » Thu Mar 02, 2017 9:56 am

1. When I run identification on the model, I get that
Code: Select all
rhoad

is not identified.
2. You are using a linear model, but the data is not mean 0. Is that intended?
------------
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: Shocks in historical decomposition graphs too volatile

Postby pepito_bm » Thu Mar 02, 2017 12:01 pm

Hi Johannes,

So regarding this issue I detrend the one-sided HP filter so in finite samples the mean won't be zero I guess. I advised my supervisor about it since at first I always demeaned the cyclical component of the series due to this problem. However, he said that this shouldn't be a problem since then the shocks won't be mean-zero and that's it pretty much. So I proceeded like that. But I'm not sure whether that's still OK. What would you recommend?

Best,
Petar
pepito_bm
 
Posts: 20
Joined: Mon Aug 25, 2014 4:10 pm

Re: Shocks in historical decomposition graphs too volatile

Postby jpfeifer » Thu Mar 02, 2017 12:57 pm

That sounds OK. Given that you multiplied with 100, the mean was small in any case. I was just making sure.
------------
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 contributions and examples

Who is online

Users browsing this forum: No registered users and 4 guests