Unexpected unit root in the model

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.

Unexpected unit root in the model

Postby michall23full » Fri Jun 23, 2017 10:10 pm

I've tried to implement NK-SOE model by Alpanda et al. (2010). First, I rewrote the equations and calibrated parameters to their posterior mean from the paper. IRFs look the same, however Dynare 4.6 says my model contains unit root, whether original did not as authors calculated asymptotic variance decomposition. I tried to run IRFs in horizon 1000 and all variables returned to the steady state.

I attach paper and the code.
Attachments
Alpanda_et_al_2010.pdf
(640.16 KiB) Downloaded 64 times
Alpanda2010_model_c1.mod
(5.63 KiB) Downloaded 52 times
michall23full
 
Posts: 12
Joined: Thu Jun 08, 2017 10:45 am

Re: Unexpected unit root in the model

Postby jpfeifer » Sat Jun 24, 2017 8:26 am

That comes from the equations
Code: Select all
q-q(-1)=d+pi_for-pi;%Real exchange rate definition
s-s(-1)=pi_f-pi; % Terms of trade definition
Psi_F-Psi_F(-1)=d+pi_for-pi_f; % Deviation from the law of one price definition

As is well-known, in New Keynesian models the price level has a unit root. Only inflation rates have a unique steady state. The growth rates on the LHS of these equation seem to give rise to a random walk. The strange things is that you get this unit root in real relative prices like the terms of trade.
------------
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: Unexpected unit root in the model

Postby michall23full » Sat Jun 24, 2017 9:56 am

Thanks for your reply. I don't have neither price level nor nominal exchange rate in my model, only inflation and depreciation rate. I tried to reparametrize the model to the prior mean from the paper, but unit root is still present, so it seems not be connected with parametrisation.
michall23full
 
Posts: 12
Joined: Thu Jun 08, 2017 10:45 am

Re: Unexpected unit root in the model

Postby michall23full » Sat Jun 24, 2017 8:08 pm

I tried one another SOE model (Nimark 2007/2009) and end up with unit root and collinear equations, too. These are all off-the-shelf models so they should work or am I missing something ? May numerical problems be an issue ? PS All variables return to the steady state in this case too.
Attachments
Nimark2009_model_c1.mod
(6.48 KiB) Downloaded 56 times
michall23full
 
Posts: 12
Joined: Thu Jun 08, 2017 10:45 am

Re: Unexpected unit root in the model

Postby michall23full » Sun Jun 25, 2017 2:50 pm

When I set qz_criterium to value closer to 1, Dynare produced variance decomposition for Nimark (2009) model, however Alpanda et al. (2010) still does not work. But I wonder whether it is good idea to change numerical tolerance, or I'm just hiding problems with the model
michall23full
 
Posts: 12
Joined: Thu Jun 08, 2017 10:45 am

Re: Unexpected unit root in the model

Postby jpfeifer » Mon Jun 26, 2017 6:05 pm

No, that is usually not a good idea. The Nimark model is different in that it features a unit root, but no rank condition failure (in contrast to Alpanda). You need to understand what is going on, i.e. why the real variables in the model have a unit root. That may be related to the way the model is closed, see Schmitt-Grohé/Uribe (2003).
Other SOE models like the one in Gali's textbook do not have this issue, see https://github.com/JohannesPfeifer/DSGE_mod/blob/master/Gali_2015/Gali_2015_chapter_8.mod
------------
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: Unexpected unit root in the model

Postby michall23full » Tue Jun 27, 2017 5:36 am

I suppose I solved the problem with Alpanda (2010). The erroneous definition of real exchange rate was provided in the paper. I changed my code and received impulse responses that match those from the paper.
I attach the correct code below in case other users are interested.
Attachments
Alpanda2010_model_c1.mod
(5.85 KiB) Downloaded 70 times
michall23full
 
Posts: 12
Joined: Thu Jun 08, 2017 10:45 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests