2nd order approximation in dynare++ and perturbation AIM

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.

2nd order approximation in dynare++ and perturbation AIM

Postby zj1009 » Thu May 07, 2015 6:28 am

HI,
I use dynare++ to simulate the model in Rudebusch and Swanson (2012 AEJ Macro) "the bond premium in a DSGE model with long-run real and nominal risks". But I found that the std reported by dynare++ (2nd order approximation) are different from Swanson's code (reported in Table2 last column, excluding std for term premium), especially for real wages. Should the two give the same answers?
Does anyone know why this happens or have the same problem?
I attached my mod file and Swanson's mathematica code.
Thanks,
zj
Attachments
perturbationAIM.m
(25.53 KiB) Downloaded 88 times
ezrsbestfit.m
(28.46 KiB) Downloaded 92 times
ezlrexopref+.mod
(5.2 KiB) Downloaded 134 times
zj1009
 
Posts: 6
Joined: Sun Jul 27, 2014 1:26 am

Re: 2nd order approximation in dynare++ and perturbation AIM

Postby jpfeifer » Sun May 10, 2015 2:32 pm

Dynare and AIM should give you the same results for the same approximation order (if they are simulation-based, small differences are to be expected).
Looking at your code compared to Rudebusch/Swanson (2012), it seems they are considering the logarithm of the real wage, while you are not.
------------
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: 2nd order approximation in dynare++ and perturbation AIM

Postby zj1009 » Mon May 11, 2015 2:44 am

Hi jpfeifer,
Thank you very much for your reply!
According to your suggestion, I tried the logarithm of real wage, consumption, labor, etc. Their std are indeed closer to Swanson's results than before, but they are still quite different. Do you have further suggestions on what I could try?
Thanks,
Ji
zj1009
 
Posts: 6
Joined: Sun Jul 27, 2014 1:26 am

Re: 2nd order approximation in dynare++ and perturbation AIM

Postby jpfeifer » Fri May 15, 2015 9:32 am

Are you using the same approximation order? And did you cross-check your FOCs with their Mathematica code?
------------
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: 2nd order approximation in dynare++ and perturbation AIM

Postby zj1009 » Sun May 17, 2015 12:11 pm

Hi jpfeifer,
Yes, their mathematica code reports the 2nd order approx. std for macro variables and 3rd order approx. std for term premium, and I use the same order to get std for macro variables. And I also double checked my dynare code and the mathematica code. Unfortunately, I still cannot get the same results...
Ji
zj1009
 
Posts: 6
Joined: Sun Jul 27, 2014 1:26 am


Return to Dynare help

Who is online

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