Page 1 of 1

HP filter - storing the cycle component

Posted: Thu Feb 19, 2009 10:18 am
by javiersan
Hi,

The menu-based HP filter option allows for storing the cycle and filtered component. I cannot find on the help how to store the cycle component via the program command (i.e. gdp.hpf(lambda=1600) gdp_hp will only store the trend). Could you please help me with this?

I tried to replicate the stored cycle series by applying a formula like: cycle = series / trend - 1 or cycle=(series - trend) / series, where series is the original time series data and trend is the hp-filtered series. I get nothing similar to the cycle calculated by EViews. Where am I going wrong?

Thanks,

Javier

Re: HP filter - storing the cycle component

Posted: Thu Feb 19, 2009 10:28 am
by EViews Gareth
I don't believe it is possible to store the cycle series via command.

Re: HP filter - storing the cycle component

Posted: Thu Feb 19, 2009 12:00 pm
by startz
Hi,

The menu-based HP filter option allows for storing the cycle and filtered component. I cannot find on the help how to store the cycle component via the program command (i.e. gdp.hpf(lambda=1600) gdp_hp will only store the trend). Could you please help me with this?

I tried to replicate the stored cycle series by applying a formula like: cycle = series / trend - 1 or cycle=(series - trend) / series, where series is the original time series data and trend is the hp-filtered series. I get nothing similar to the cycle calculated by EViews. Where am I going wrong?

Thanks,

Javier
Try

Code: Select all

gdp.hpf(lambda=1600) gdp_hp series gdp_c = gdp - gdp_hp

Re: HP filter - storing the cycle component

Posted: Thu Feb 19, 2009 3:33 pm
by javiersan
Oh! that was easy!

Thanks.

Re: HP filter - storing the cycle component

Posted: Tue Nov 28, 2017 10:36 pm
by flourence
Can i use hodrick prescott to show if the series has a trend or none ?