Packages to implement 1-sided HP 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.

Packages to implement 1-sided HP filter?

Postby kgarb » Thu May 05, 2016 5:15 pm

Hello,

I used a two-sided HP filter when detrending my data initially, rather than a one-sided HP filter. Are there any programs that include one-sided HP filters, or have good 2nd-party programs to do so? I would prefer not to implement one myself, but programs don't seem to implement this as standard (i.e. Stata only has two-sided filters, for example).

I have access to:
EViews
Stata
Matlab (basic program, no additional packages)
R
Python or Julia (if necessary, though I am not at all well-versed in either of these)

Thanks!
kgarb
 
Posts: 34
Joined: Thu May 28, 2015 9:19 pm

Re: Packages to implement 1-sided HP filter?

Postby jpfeifer » Fri May 06, 2016 7:43 am

Regarding the one-sided HP-filter: it is now contained in the Dynare unstable version. You can also download the Matlab file here: https://raw.githubusercontent.com/DynareTeam/dynare/master/matlab/one_sided_hp_filter.m
------------
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: Packages to implement 1-sided HP filter?

Postby kgarb » Fri May 06, 2016 3:02 pm

Thank you!
kgarb
 
Posts: 34
Joined: Thu May 28, 2015 9:19 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests