hodrick-prescott applied to a group of variables

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

veni
Posts: 12
Joined: Fri Sep 02, 2016 6:04 am

hodrick-prescott applied to a group of variables

Postby veni » Wed Jan 04, 2023 8:40 am

Dear Group members,
I have several variables and I want to apply the HP filter. Who to automate this? I grouped them but the hpf does not work.
Many thanks in advance,
Veni

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

Re: hodrick-prescott applied to a group of variables

Postby EViews Gareth » Wed Jan 04, 2023 9:27 am

Perhaps you could show us what you've done so far, and explain how it doesn't work, then we can give you some pointers.
Follow us on Twitter @IHSEViews

veni
Posts: 12
Joined: Fri Sep 02, 2016 6:04 am

Re: hodrick-prescott applied to a group of variables

Postby veni » Thu Jan 05, 2023 6:02 am

group g1 * not resid
hpf(lambda=69) g1

g1 is a group of 100 series
Instead having
hpf(lambda=69) series1
.
.
.
hpf(lambda=69) series100
I'm looking for a way to automate this. Unless the only way is to include it in a for loop.
Thanks again

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

Re: hodrick-prescott applied to a group of variables

Postby EViews Gareth » Thu Jan 05, 2023 8:49 am

If you read through this thread, you can get tips on using for loops to automate such tasks:
viewtopic.php?f=5&t=1638
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 22 guests