For questions regarding programming in the EViews programming language.

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

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


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


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.


EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 11983
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

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

Re: Loop

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

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 6 guests