Applying BP filter in DSGE 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.

Applying BP filter in DSGE Model

Postby Eriador » Fri Apr 08, 2016 1:07 pm

Hi,

I am trying to apply a Band pass filter in my RBC DSGE model. I have had a look at the codes and cannot find them anywhere.
If anyone can find or help me with finding or creating the code would be very helpful.
Thank you in advance.

E
Eriador
 
Posts: 4
Joined: Fri Apr 08, 2016 1:02 pm

Re: Applying BP filter in DSGE Model

Postby jpfeifer » Sun Apr 17, 2016 4:43 pm

In the current unstable version, there is an option
Code: Select all
bandpass_filter

for this. See https://github.com/DynareTeam/dynare/blob/master/tests/moments/example1_bp_test.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: Applying BP filter in DSGE Model

Postby Eriador » Tue Aug 16, 2016 5:05 pm

Thank you for your response.

I have found a way to convert the data beforehand and then use that in estimating parameters for the NK model.
Eriador
 
Posts: 4
Joined: Fri Apr 08, 2016 1:02 pm

Re: Applying BP filter in DSGE Model

Postby jpfeifer » Tue Aug 16, 2016 5:15 pm

Please be aware of the pitfalls of filtering when doing Bayesian estimation. See Pfeifer(2013): "A Guide to Specifying Observation Equations for the Estimation of DSGE Models" https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf.
------------
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: Applying BP filter in DSGE Model

Postby Eriador » Tue Aug 16, 2016 7:24 pm

Thank you for the prompting me. I have had a look through your guide. I am using Smet wouters 2007 data and the codes are all there for me to use on the NK model estimation. I will be using Bayesian estimation, if you can elaborate more on some of the problems so I can research it.
Eriador
 
Posts: 4
Joined: Fri Apr 08, 2016 1:02 pm

Re: Applying BP filter in DSGE Model

Postby jpfeifer » Wed Aug 17, 2016 6:37 am

When doing Bayesian estimation, you should use a first difference filter or linear trend, not a two-sided filter like a bandpass or two-sided HP filter
------------
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: Applying BP filter in DSGE Model

Postby Eriador » Wed Aug 17, 2016 10:34 am

Thank you for your help. I will include this in my analysis.
Eriador
 
Posts: 4
Joined: Fri Apr 08, 2016 1:02 pm


Return to Dynare help

Who is online

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