converting excel file into workfile

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

oykuyel
Posts: 1
Joined: Fri Dec 26, 2014 1:46 pm

converting excel file into workfile

Postby oykuyel » Fri Dec 26, 2014 2:03 pm

Hello,
I have a monthly CPI data from 2003 to 2013 in excel I want to create a workfile in Eviews but I fail. First of all, when I open the excel file in eviews and create the data, workfile contains every year seperately. But I need only one file combined each year with each month because when it comes to estimate, I want to estimate 2003-2013 but it shows 2003sep-2003dec. So I don't know what to do. I tried to organize excel file but the same problem happens every time when i open it in eviews. How can i fix this problem?
Thx in advance
Attachments
CPI.xlsx
CPI data in excel
(9.98 KiB) Downloaded 196 times
Adsız.png
screenshot of workfile
Adsız.png (15.27 KiB) Viewed 1702 times

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

Re: converting excel file into workfile

Postby EViews Gareth » Fri Dec 26, 2014 2:10 pm

Can be done interactively or programmatically. Here's the program code:

Code: Select all

wfopen cpi.xlsx pagestack january february march april may june july august september october november december alpha date = var01 + " " + @str(series01) pagestruct @date(@dateval(date)) rename var02 cpi d id01 series01 var01 date pagedelete cpi


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests