Dates

For questions regarding programming in the EViews programming language.

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

ral
Posts: 23
Joined: Tue Oct 21, 2014 2:44 pm

Dates

Postby ral » Tue Oct 21, 2014 5:39 pm

I have a program that I want to run on data sets with different start dates. At the beginning of the program, I have defined a several scalars used in the program that I modify depending on the data set. Can I do something similar for dates that define the sample period in the regressions I want to run?

For example, in one date set the start and end dates may be 1980M1 and 2014M9 and another may span 1990M1 to 2013M12. Is it possible to define variables (e.g., startdate=1980M1 and enddate=2014M14) at the beginning of the program to make it easier to accommodate the different data structures?

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

Re: Dates

Postby EViews Gareth » Wed Oct 22, 2014 8:08 am

Code: Select all

%start = "1980M1" %end = "2014M9" 'stuff here smpl {%start} {%end}

Infometrics
Posts: 4
Joined: Sun Jul 20, 2014 9:40 pm

Re: Dates

Postby Infometrics » Mon Dec 08, 2014 8:43 pm

Hi,

I believe I have a similar problem to this but haven't been able to the code to work within the framework I have.
I have a series in my dataset called series05 and it has NA's in the middle of it. I want to seasonally adjust what I can from the series.

I thought that the best way to do this was to create a new shorter series starting from the first month after the NA break (1989M02) and to then seasonally adjust this new series. Is there a way to do this? Or is there a better way to achieve what I want to achieve?

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

Re: Dates

Postby EViews Gareth » Mon Dec 08, 2014 9:01 pm

Just set the sample to the periods you want to adjust, then adjust.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest