creating a workfile for panel data

For questions regarding programming in the EViews programming language.

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

facosta
Posts: 23
Joined: Wed Jul 07, 2010 9:16 am

creating a workfile for panel data

Postby facosta » Wed Feb 16, 2011 7:19 am

Hello. Thanks again for all the support.
I am working with panel data, and the spreadsheet with the data I am using is continuously updated. So my question is how can I give a panel structure to the workfile so I can import from the excel without previously giving the workfile a start and an end date.
For example, I know I can use this command:
wfcreate(wf=PANEL_DATA, page=Variables) m 1980m1 2010m12
But what I would like to do is to give a panel structure without an end date since what I need to do is to read from the excel data I am importing the date structure.
Thank you!

facosta
Posts: 23
Joined: Wed Jul 07, 2010 9:16 am

Re: creating a workfile for panel data

Postby facosta » Wed Feb 16, 2011 10:16 am

I´m thinking maybe it can´t be done since no one answer.
Another question, is there a way you can import all the data contained in an excel spreadsheet no matter if you have a column filled with blanks (ie no data)?
I am using the import or wfopen commands but they read only from the first column to the last column with data, however the following columns contain data but they are not loaded in the workfile page. For example, the excel file I have data from "A" to "M" columns, but the "E" column is empty, the following data are from "F" to "M" columns so my program loads only the data from "A" to "D", the following are not read.
Thanks.

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

creating a workfile for panel data

Postby EViews Gareth » Wed Feb 16, 2011 10:50 am

You can't create a workfile with no end date (it's a bit like asking to create a piece of string with no end).

The import command does let you resize the workfile to the size of the incoming data, though.

Both import and wfopen let you specify the range of Excel cells to bring into EViews

facosta
Posts: 23
Joined: Wed Jul 07, 2010 9:16 am

Re: creating a workfile for panel data

Postby facosta » Thu Feb 17, 2011 10:15 am

Thanks Gareth. The thing is I was trying to import all the data but my excel spreadsheet contains blank columns, and the import command import just read the data until the last column filled with data, can I fix this somehow?
The command I am usins is the following:
import "C:\Program\Data.xlsm" range="Levels" @freq q 1993
Thanks!

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

Re: creating a workfile for panel data

Postby EViews Gareth » Thu Feb 17, 2011 10:18 am

Just specify the range of data you want to import.

facosta
Posts: 23
Joined: Wed Jul 07, 2010 9:16 am

Re: creating a workfile for panel data

Postby facosta » Fri Feb 18, 2011 9:58 am

I am sorry, I just can´t solve this. I try to give the range but it doesn´t work as I need.
I tried using @all but i think I am doing something wrong.
I am really sorry all the questions.

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

Re: creating a workfile for panel data

Postby EViews Gareth » Fri Feb 18, 2011 10:09 am

Currently you are using

Code: Select all

range="Levels"
to specify the Excel range that you want to bring in. You can change this to be whatever Excel range you want. Just use standard Excel range syntax to specify different parts of the spreadsheet. i.e., if you want to bring in columns A, B and D, rows 1 to 20, then the range would be "A1:B20, D1:D20" or something like that.

If you're unsure how to use Ranges in Excel, I'm sure a brief Google search can help out.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest