Importing trade data with special date format

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

neophytosk
Posts: 16
Joined: Fri Mar 22, 2013 3:44 am

Importing trade data with special date format

Postby neophytosk » Sun Oct 20, 2013 8:19 am

Hello

Do you have any suugestions on how to import a financial series dataset with the following dat structure:

16JAN2012:03:43:42

I tried to import as unstructured and then convert the date variables as below, but i recieve an error:

series datetime = @dateval(@str(lastmodificationdate, "f11.0"),"DDMMYYYYHH:MI:SS")

I have attached a sample in excel

Any support is much appreciated

Neo
Attachments
eurousdeviews - sample.xls
(245.5 KiB) Downloaded 316 times

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

Re: Importing trade data with special date format

Postby EViews Gareth » Sun Oct 20, 2013 8:25 am

If I open that file in EViews 8, EViews automatically recognises the "LastModificationDate" column as a date/time stamp.

You cannot structure the workfile by that series though, since it does not contain unique values.

neophytosk
Posts: 16
Joined: Fri Mar 22, 2013 3:44 am

Re: Importing trade data with special date format

Postby neophytosk » Sun Oct 20, 2013 11:30 am

Hi

I am using eviews 7 , is there a way to open the file as you do in v.8?

Also what do you mean by unique values? That some observations occur in the same time?

Thnx

Neo

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

Re: Importing trade data with special date format

Postby EViews Gareth » Sun Oct 20, 2013 11:41 am

Yes, some observations occur at the same time, so you cannot use time as an observation identifier.

neophytosk
Posts: 16
Joined: Fri Mar 22, 2013 3:44 am

Re: Importing trade data with special date format

Postby neophytosk » Sun Oct 20, 2013 1:34 pm

Hi

thnx for the comments.
I imported the data as suggested and use "deal_id" as the identifier (see updated attached sample file) but I still would like to change "lastmodificationdate" to a readable eviews date format as I would like to create a new file with frequency compounding (where I sum up variables for example every 10 minute interval (based on the new date variable)

Any suggestions on how to update the date series?

BR,Neo
Attachments
eurousdeviews - samplev2.xls
(247.5 KiB) Downloaded 285 times

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

Re: Importing trade data with special date format

Postby EViews Gareth » Sun Oct 20, 2013 1:35 pm

Post your EViews file.

neophytosk
Posts: 16
Joined: Fri Mar 22, 2013 3:44 am

Re: Importing trade data with special date format

Postby neophytosk » Sun Oct 20, 2013 1:56 pm

here is a sample, the original file has 1mln observations so it is too bigto upload
Attachments
eurousdeviews - samplev2.wf1
(17.09 KiB) Downloaded 243 times

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

Re: Importing trade data with special date format

Postby EViews Gareth » Sun Oct 20, 2013 3:37 pm

In that file lastmodificationdate is already a date format.

neophytosk
Posts: 16
Joined: Fri Mar 22, 2013 3:44 am

Re: Importing trade data with special date format

Postby neophytosk » Mon Oct 21, 2013 12:44 am

perfect,

can i use it now to compund the frequencies e.g at 10 minutes intervals?

if yes how can I do this in eviews?

Thnx

Neo

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

Re: Importing trade data with special date format

Postby EViews Gareth » Mon Oct 21, 2013 7:43 am

Create a new page at the frequency you want. Then copy the date over from your existing page to the new page, performing general-match merge frequency conversion. See the User Guide for more details.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests