Intraday panel data import

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

GT2-R
Posts: 3
Joined: Tue Apr 02, 2013 6:21 am

Intraday panel data import

Postby GT2-R » Tue Apr 02, 2013 6:31 am

Hi all,

I'm currently working a project concerning an intraday panel data set (99 stocks - 30MIN intervals). The problem arises when trying to import our panel data set, which we do starting from a text file containing about 4200 observations. Eviews apparently is unable to recognize our date format, which is currently set to YYYYMMDDHHMI in order to distinguish the half hour intervals. Is there any way to "force" Eviews to recognize such a format? Any help would be enormously appreciated!

Thanks in advance!

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

Re: Intraday panel data import

Postby EViews Gareth » Tue Apr 02, 2013 8:06 am

Any chance you could post the file (or a sample)?

GT2-R
Posts: 3
Joined: Tue Apr 02, 2013 6:21 am

Re: Intraday panel data import

Postby GT2-R » Wed Apr 03, 2013 1:51 am

Thanks for the reply. Here you can find a small sample. As you can see the first column is the cross-sectional identifier while the second is supposed to be the date/time identifier (which is the problem here). Var1 to Var3 are some of the 30 variables we're currently working with.
Attachments
PanelData_Sample.xlsx
(9.89 KiB) Downloaded 286 times

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

Re: Intraday panel data import

Postby EViews Gareth » Wed Apr 03, 2013 7:39 am

Just open that file up as unstructured, then create a datetime series as so:

Code: Select all

series datetime = @dateval(@str(interval_id, "f11.0"), "YYYYMMDDHHMI")
Then you can use that to structure your page as a panel. Via command:

Code: Select all

pagestruct stock_id @date(datetime)

GT2-R
Posts: 3
Joined: Tue Apr 02, 2013 6:21 am

Re: Intraday panel data import

Postby GT2-R » Thu Apr 04, 2013 6:55 am

You just made our day! Thank you so much for your help. The problem is solved.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest