sample issue

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

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

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

sample issue

Postby mark » Wed Apr 07, 2010 11:05 am

Hi
I have a excel series with 22,000 observations using the following format 2006-04-20
I have imported the series into eviews using numeric display "Period" a date format of "YYYY:MM"
I want to sample by year (6 years of observations), however when I input the sample code, it get's rejected everytime.

Any advice would be appreciated.

thanks

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

Re: sample issue

Postby EViews Gareth » Wed Apr 07, 2010 11:13 am

Could you provide more details?

What sample code do you input, and how does it get rejected?

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

Re: sample issue

Postby mark » Wed Apr 07, 2010 12:32 pm

Hi
series name is "date"
using the sample menu:

@all
date ="2006:01" "2009:04"

Error message reads "error in sample: 2006:04 is not defined"

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

Re: sample issue

Postby mark » Wed Apr 07, 2010 12:40 pm

Using the sample window

@all
year= 2005:04 2008:01


error in sample: 2005:04 is not defined

here is an extract of the raw data:


2005:04
2005:04
2005:04

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

Re: sample issue

Postby EViews Gareth » Wed Apr 07, 2010 12:40 pm

Assuming your workfile is dated, you probably just need to type "2006:01 2009:04" in the top box of the sample dialog, and leave the bottom part blank.


If you really want to use the date series, then you would fill this in the bottom box:

date >= @dateval("2006:01) and date <= @dateval("2009:04")

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

Re: sample issue

Postby mark » Wed Apr 07, 2010 1:43 pm

Hi - tried your solution to no avail

I've attached the workfile in an unstructed format along with the sample declaration. Hope you can help
Attachments
date sample issue.wf1
(359.09 KiB) Downloaded 466 times

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

Re: sample issue

Postby EViews Gareth » Wed Apr 07, 2010 1:52 pm

Sorry, try this:
date >= @dateval("2006:01", "yyyy:mm") and date <= @dateval("2009:04", "yyyy:mm")


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests