Loop

For questions regarding programming in the EViews programming language.

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

pgrign
Posts: 11
Joined: Fri Mar 03, 2017 2:59 am

Loop

Postby pgrign » Thu Apr 27, 2017 2:20 am

Hi,

I have written a program, but I need to run it multiple times restricting the sample size. Let me explain it better: as usual the program starts with;

create m 2004.1 2017.3
...

At the end of the routine I obtain a series, which I want to keep. But then, I need to run the program again with smpl 2004.1 2017.2, and then smpl 2004.1 2017.1, etc...

I'd like to know if there's a way to make it automatically, saving a new series each time.

Thanks!

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

Re: Loop

Postby EViews Gareth » Thu Apr 27, 2017 7:49 am

Follow us on Twitter @IHSEViews

asif_1210
Posts: 9
Joined: Wed Sep 07, 2016 3:57 am

Re: Loop

Postby asif_1210 » Mon Nov 27, 2017 10:02 am

Hi,
I need to create hp filter series for each variable in my data set. They r already logged and having identifiers like X_1, X_2, etc. After hp filter, I also need to calculate and store gap in each series from its original value like X_1 - X_hp_1 (for each series). Is there any command which help me to do this at one time for each series instead of calculating for each series with manual transformations?


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 26 guests