Page 1 of 1

Packages to implement 1-sided HP filter?

PostPosted: Thu May 05, 2016 5:15 pm
by kgarb
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!

Re: Packages to implement 1-sided HP filter?

PostPosted: Fri May 06, 2016 7:43 am
by jpfeifer
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

Re: Packages to implement 1-sided HP filter?

PostPosted: Fri May 06, 2016 3:02 pm
by kgarb
Thank you!