Output gap estimation

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.

Output gap estimation

Postby fp3690 » Mon Jun 22, 2015 11:26 pm

Hi all,

I am trying to estimate output gap using a method used in a recent IMF paper (http://www.imf.org/external/pubs/ft/wp/2015/wp1579.pdf). They use IRIS (as is typical for output gap measurement apparently) which requires the optimization toolbox which I cannot get. Therefore I am trying to do it in Dynare.

The problem is that potential output has a unit root, but I cannot simply use a first difference because I need the level for the gap equation (gap=actual -potential). How could I get around this? I am attaching the mod file - I get convergence if I made the process a non-unit root (I have 0.95 coefficient in the file).

Thanks a lot in advance!
Attachments
dynmod.mod
(1.41 KiB) Downloaded 118 times
fp3690
 
Posts: 15
Joined: Tue Apr 07, 2015 3:21 am

Re: Output gap estimation

Postby fp3690 » Wed Jun 24, 2015 8:27 am

Anyone? It's urgent!!
fp3690
 
Posts: 15
Joined: Tue Apr 07, 2015 3:21 am

Re: Output gap estimation

Postby LMGZ » Wed Jun 24, 2015 5:57 pm

Hello:

I do not know if this is correct since I just started working with this kind of models and Dynare in general, however, i was having the same difficulty so I rewrote the gap equation. Now, Dynare solves for the same steady state IRIS does, but now I am having problems with estimating the parameters. Hope this helps you.

Regards

LMGZ
Attachments
MVFIMF.mod
(2.81 KiB) Downloaded 154 times
LMGZ
 
Posts: 2
Joined: Tue Jun 23, 2015 7:54 pm

Re: Output gap estimation

Postby fp3690 » Wed Jun 24, 2015 11:25 pm

Thanks a lot! I'll try it out and let you know

Update: Ok so it works fine for me - I cannot get lambda to be close, everything else is pretty similar to what they report - but with normal priors (which is equivalent to regularized maximum likelihood if I'm not mistaken). I'll check into this soon.

All I changed was the lik_init option. It has to be changed to 2 or 3, since the model is non-stationary.
fp3690
 
Posts: 15
Joined: Tue Apr 07, 2015 3:21 am

Re: Output gap estimation

Postby jpfeifer » Sun Jun 28, 2015 8:34 pm

Yes, for models with unit roots you must use the diffuse Kalman filter option or directly set the lik_init option accordingly.
------------
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: Output gap estimation

Postby fp3690 » Mon Jun 29, 2015 9:52 am

Thanks Johannes - is there a reference for this? I would like to know what's going on for my peace of mind. Also, can you comment on whether I say above is true i.e. Bayesian MLE with a normal prior is equivalent to regularized maximul likelihood?
fp3690
 
Posts: 15
Joined: Tue Apr 07, 2015 3:21 am

Re: Output gap estimation

Postby LMGZ » Mon Jun 29, 2015 5:39 pm

Well, according to this working paper from the same guys http://www.imf.org/external/pubs/ft/wp/2010/wp10285.pdf (page 19) you are right: Bayesian MLE with bounded normal prior is equivalent to regularized maximum likelihood. However I would really appreciate if you could explain why is it necessary to select lik_init option 2 if the model is stationary after modifying the gap equation.

Regards.
LMGZ
 
Posts: 2
Joined: Tue Jun 23, 2015 7:54 pm

Re: Output gap estimation

Postby fp3690 » Tue Jun 30, 2015 12:52 pm

Because the manual says so :)
fp3690
 
Posts: 15
Joined: Tue Apr 07, 2015 3:21 am

Re: Output gap estimation

Postby jpfeifer » Sun Jul 05, 2015 5:47 pm

It is about the initialization of the Kalman filter recursion, see e.g. http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=6901
------------
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 help

Who is online

Users browsing this forum: Google [Bot] and 7 guests