Resizing Undated Workfile

For questions regarding programming in the EViews programming language.

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

bjohn
Posts: 15
Joined: Fri Mar 11, 2011 8:13 am

Resizing Undated Workfile

Postby bjohn » Tue Jun 14, 2011 9:03 am

I have accquired a dataset in very raw form. It is structured with five series containing: country, year, variable name, value and data vintage.

The dataset is unbalanced, in the sense that if there is no data for a particular country in a certain year, the dataset contains to reference to it. I would first like to resize the dataset so that it contains N*T*V*D observations, where N=number of countries, T=maximum span of time, V=number of variables,D=total number of different data vintages, and where missing data is simply coded NA.

I tried to use the pagestruct command to do this but without success. If you could let me know how to reshape it, I would be very grateful

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

Re: Resizing Undated Workfile

Postby EViews Gareth » Tue Jun 14, 2011 9:13 am

I'm assuming you want a standard panel, with YEAR as your time series ID, and COUNTRY as your cross-section ID:

Code: Select all

pagestruct(balance=sem) country @date(year)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests