sampe

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

mark
Posts: 37
Joined: Thu Mar 12, 2009 3:27 pm

sampe

Postby mark » Tue Mar 08, 2011 4:35 pm

eviews 7
I have daily data spanning 20 years. I have spit the date (d/m/yyyyy) into day, month and year.
I am attempting to sample based on a 14 day period common across all 20 years. having a problem when the sample spans more than one month.
So, for example, I'd like to sample the period May 28 through June 10.

Tried various permuatations of this but to no avail.

Suggestions?

month=5 and day >=28 and day <=31 or month=6 and day>=1 and day <=10

thanks

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

Re: sampe

Postby EViews Gareth » Tue Mar 08, 2011 4:43 pm

Code: Select all

smpl if (@month=5 and @day>=28) or (@month=6 and @day<=10)
Follow us on Twitter @IHSEViews


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 18 guests