Hodrick-Prescott (HP-filter) as an endogenous entity

For econometric discussions not necessarily related to EViews.

Moderators: EViews Gareth, EViews Moderator

kurtosis
Posts: 1
Joined: Fri Nov 13, 2009 7:44 am

Hodrick-Prescott (HP-filter) as an endogenous entity

Postby kurtosis » Fri Nov 13, 2009 7:57 am

Hi,
The issue is that i would like to define the HP-filtered time series as an endogenous entity in the model environment.
Say, I have a series y. Then I could calculate y.hpf(lambda=1600) yhp. However, this procedure is only valid outside the model environment.
An alternative way would be to employ matrix algebra, something like yhp=matrixhp*y. But then again, the matrix "matrixhp" is also not defined inside the model environment.
Does somebody have an idea how to solve this?

atoch
Posts: 15
Joined: Wed Dec 02, 2009 2:54 am
Location: Paris, France
Contact:

Re: Hodrick-Prescott (HP-filter) as an endogenous entity

Postby atoch » Wed Dec 02, 2009 3:10 am

Bonjour,

I face the same issue. If HP-filter had an implementation as a function it would work.
In the mean time it forces me to have a program to manage it out of the model which is sub-optimal.

Arnaud.

irma.liem
Posts: 1
Joined: Fri Nov 18, 2011 7:09 am

Re: Hodrick-Prescott (HP-filter) as an endogenous entity

Postby irma.liem » Fri Nov 18, 2011 7:11 am

And how did you program it then? And how to call it within the model framework?
Thank you for your help.

-irma-

Karl1
Posts: 27
Joined: Tue Aug 27, 2013 1:10 am

Re: Hodrick-Prescott (HP-filter) as an endogenous entity

Postby Karl1 » Mon Jan 20, 2014 10:34 pm

Is it possible now in the latest version of Eviews to make the hp series a part of the model so that one automatically get the hp-series also for the forecasts and not only the historical data?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13583
Joined: Tue Sep 16, 2008 5:38 pm

Re: Hodrick-Prescott (HP-filter) as an endogenous entity

Postby EViews Gareth » Mon Jan 20, 2014 10:53 pm

No.

xprimexinverse
Posts: 41
Joined: Fri Sep 18, 2015 11:41 am
Location: Dublin, Ireland
Contact:

Re: Hodrick-Prescott (HP-filter) as an endogenous entity

Postby xprimexinverse » Mon Nov 23, 2015 5:18 pm

Not sure I fully understand what the problem is here, but one idea would be to consider the fact that a HP filter can be cast into state-space form. Treating the HP filter as a special case state-space model (with lambda entering via restrictions on the variance terms) you could then merge a state-space object into a model object thereby endogenizing the HP filter. Does that sound like a solution to what you're trying to do? If so, I can attach a state-space variation of the HP filter. As I said, not sure exactly what you're trying to do, so let me know.

Cheers,
Graeme

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: Hodrick-Prescott (HP-filter) as an endogenous entity

Postby trubador » Tue Nov 24, 2015 8:31 am

Casting state space form of HP filter will not work either. As far as know, model object cannot endogenize latent variables (i.e. states). However, building the whole model within the state space framework might work.


Return to “Econometric Discussions”

Who is online

Users browsing this forum: No registered users and 1 guest