Page 1 of 1

Applying BP filter in DSGE Model

PostPosted: Fri Apr 08, 2016 1:07 pm
by Eriador
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

Re: Applying BP filter in DSGE Model

PostPosted: Sun Apr 17, 2016 4:43 pm
by jpfeifer
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

Re: Applying BP filter in DSGE Model

PostPosted: Tue Aug 16, 2016 5:05 pm
by Eriador
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.

Re: Applying BP filter in DSGE Model

PostPosted: Tue Aug 16, 2016 5:15 pm
by jpfeifer
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.

Re: Applying BP filter in DSGE Model

PostPosted: Tue Aug 16, 2016 7:24 pm
by Eriador
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.

Re: Applying BP filter in DSGE Model

PostPosted: Wed Aug 17, 2016 6:37 am
by jpfeifer
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

Re: Applying BP filter in DSGE Model

PostPosted: Wed Aug 17, 2016 10:34 am
by Eriador
Thank you for your help. I will include this in my analysis.