For loop with dates

For questions regarding programming in the EViews programming language.

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

Allexander
Posts: 2
Joined: Sun Feb 09, 2014 10:44 am

For loop with dates

Postby Allexander » Mon Feb 10, 2014 8:33 am

Hello.

I am novice at Eviews programming. Please assist me in setting 'For' loop with dates. For example, I need to run the cycle from 2000Q1 to 2013Q4 with step of 1 quarter. How in this case should 'For' be set?

Thanks in advance.

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

Re: For loop with dates

Postby EViews Gareth » Mon Feb 10, 2014 9:09 am

Easiest thing to do is use @first+!i. @first is always the first observation in your workfile, and then you can add to it to get other observations. Doesn't matter what the frequency of the workfile is.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests