Band Pass Filter

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.

Band Pass Filter

Postby phuongvn » Wed Sep 11, 2013 7:48 pm

Is there any way to use Band Pass Filter instead of HP Filter when run stoch_simul()? I would like to include medium-term cycles in computing the theoretical moments and unconditional variance decomposition. Thanks in advance.
phuongvn
 
Posts: 3
Joined: Wed Aug 28, 2013 2:03 pm

Re: Band Pass Filter

Postby jpfeifer » Fri Sep 13, 2013 4:10 am

Not by default. For the moments, it is easiest do simulate the series for a large number of periods and then apply the desired filter and compute the moments yourself.
------------
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: Band Pass Filter

Postby phuongvn » Fri Sep 13, 2013 2:25 pm

Hi guys, thanks a lot for the responses,

I would greatly appreciate if you could tell me (or refer me to any reading) how to compute conditional/unconditional variance decomposition using filtered simulated data.

Thanks a lot in advance.
phuongvn
 
Posts: 3
Joined: Wed Aug 28, 2013 2:03 pm

Re: Band Pass Filter

Postby jpfeifer » Sat Sep 14, 2013 8:16 am

I am not aware of such a source. An indication how it might work is provided in the technical appendix to Aguiar/Gopinath (2007). My hunch is that if you use a linear filter it preserves the linearity of the solution (if you go to first order only). In that case, you should be able to simulate the model with one shock at a time and then compute the fraction of the total variance.
------------
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: Band Pass Filter

Postby phuongvn » Wed Sep 18, 2013 3:51 am

I think it should work. Thanks a lot.
phuongvn
 
Posts: 3
Joined: Wed Aug 28, 2013 2:03 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests