How to perfectly match dates when importing from Excel

For questions regarding programming in the EViews programming language.

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

joad
Posts: 3
Joined: Mon Nov 09, 2015 8:30 am

How to perfectly match dates when importing from Excel

Postby joad » Fri Nov 13, 2015 7:57 am

I have daily data in Excel which I aim to import to Eviews using the import command. The data is in general listed on a daily working day basis, such that there is 5 observations per week. This suggests using import ....@freq D5.... However, for some few weeks my data has less than 5 observations. So when I import the data to Eviews, the data does not perfectly correspond to the dates that I had in my excel file (the data in the Eviews work file end earlier in time). Is there anyway to solve this in Eviews so that my Eviews workfile is a perfect match of the Excel file when it comes to the dates when observations were made?

Many thanks for your help.

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

Re: How to perfectly match dates when importing from Excel

Postby EViews Gareth » Fri Nov 13, 2015 8:39 am

If you have the dates in the Excel file, why not just import the date column too, and let EViews figure out the rest?

joad
Posts: 3
Joined: Mon Nov 09, 2015 8:30 am

Re: How to perfectly match dates when importing from Excel

Postby joad » Fri Nov 13, 2015 9:41 am

What would the syntax for that approach look like?

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

Re: How to perfectly match dates when importing from Excel

Postby EViews Gareth » Fri Nov 13, 2015 9:59 am

wfopen myfile.xlsx


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests