Date Recognition in Panel Import

For questions regarding programming in the EViews programming language.

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

rmoralesaramburu
Posts: 52
Joined: Mon Nov 18, 2013 9:09 am

Date Recognition in Panel Import

Postby rmoralesaramburu » Thu Apr 09, 2015 8:51 am

Hi,

I am having troubles when I import data to excel, Eviews can't recognize properly the dates column. Could you help me please? I am attaching the excel file.
Attachments
EPFR_W.xlsx
(1.39 MiB) Downloaded 762 times

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

Re: Date Recognition in Panel Import

Postby EViews Gareth » Thu Apr 09, 2015 1:04 pm

The date column is messed up in Excel. If you change the format of Column A to be "General" rather than "Date", you'll see that only some of the values are actual dates, and others are text. This is screwing with EViews. It would be easier to fix in Excel than in EViews, probably.

rmoralesaramburu
Posts: 52
Joined: Mon Nov 18, 2013 9:09 am

Re: Date Recognition in Panel Import

Postby rmoralesaramburu » Mon Apr 13, 2015 7:01 am

Thanks for the reply. It has been difficult for me changing the format of the dates. In Eviews I have the following Error Message "Try Using GENR functions with explicit formatting to create a date series in "PAGESTRUCT COUNTRY @DATE(DATE)".

How can I do that?

I have the panel and the only thing I can't get are the dates. I would like to do it manually, it is weekly data from 10/27/2000 till 04/01/2015

Thanks!!

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

Re: Date Recognition in Panel Import

Postby EViews Gareth » Mon Apr 13, 2015 8:15 am

Did you try fixing it in Excel?

rmoralesaramburu
Posts: 52
Joined: Mon Nov 18, 2013 9:09 am

Re: Date Recognition in Panel Import

Postby rmoralesaramburu » Mon Apr 13, 2015 11:45 am

Yes! with no success! So I prefer to do it manually in eviews if it is straightforward and easy..

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

Re: Date Recognition in Panel Import

Postby EViews Gareth » Mon Apr 13, 2015 11:54 am

Try:

Code: Select all

series dt = @dateval(date)
then using dt as the date series.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests