stack data from excel

For questions regarding programming in the EViews programming language.

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

mikela
Posts: 14
Joined: Tue Jan 11, 2011 8:24 am

stack data from excel

Postby mikela » Tue Mar 10, 2015 1:57 am

hi,
i have a lot of data in excel format, in each sheet one variable across 230 individuals, for 82 variables (so 82 sheets).

I need to reshape these data into one big panel, stacking the data. Currently i'm trying to use pagestack but i don't manage to make it work.
So here is what i am doing:

first i import the data, putting a variable in each page:

pageload(page=x_11350) "data.xlsx" range="x_11350"
pageload(page=x_11110) "data.xlsx" range="x_11110"

and the workfile looks like the attached. Now i would have to import 82 pages and then stack them across the ids (b1, b2, etc). and with each series having the X_11350 etch name, Ideally in one new page.... not sure i'm being clear.

If you have any other ideas as to to how solve this problem, i would be very greatful.

Many thanks
Michela
Attachments
dataMarch.WF1
(227.08 KiB) Downloaded 468 times

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

Re: stack data from excel

Postby EViews Gareth » Tue Mar 10, 2015 7:50 am



Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests