Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Eviews5 / EViews5 / Docs / EViews 5 Users Guide.pdf
Скачиваний:
152
Добавлен:
23.03.2015
Размер:
11.51 Mб
Скачать

Panel Workfile Information—877

acters, the observation labels include 7 fixed characters for the ID value. A notable exception to this rule is seen in the DATE portion of the observation label. Since we have specified a dated annual panel format, EViews uses this information to shorten the date portion of the observation label by using a 2-digit year identifier.

We may improve the appearance of the observation labels to changing the spreadsheet display settings in the ID series. Simply open the ID series window, click on the Properties button and select the Display tab, then change the display to show significant digits. Similarly, we may open the DATE series and specify display properties to show the dates using the Current workfile format.

Here, we show the observation labels along with formatted values for ID and DATE. Note again that the observation labels do not use the formatting for DATE, but instead use formatting based on the workfile date structure.

Panel Workfile Information

When working with panel data, it is important to keep the basic structure of your workfile in mind at all times. EViews provides you with tools to access information about the structure of your workfile.

Workfile Structure

First, the workfile statistics view provides a convenient place for you to examine the structure of your panel workfile. Simply click on View/Statistics from the main menu to display a summary of the structure and contents of your workfile.

878—Chapter 28. Working with Panel Data

Workfile Statistics

Date: 01/13/04 Time: 08:29

Name: GRUNFELD_BALTAGI_PANEL

Number of pages: 3

Page: panel

 

 

 

Workfile structure: Panel - Annual

 

 

Indices: ID x DATE

 

 

 

Panel dimension: 10 x 20

 

 

 

Range: 1935 1954 x 10 --

200 obs

 

 

Object

Count

Data Points

 

series

7

1400

 

alpha

1

200

 

coef

1

751

 

equation

10

 

 

group

2

 

 

Total

21

2351

The top portion of the display for our first example workfile is depicted above. The statistics view identifies the page as an annual panel workfile that is structured using the identifiers ID and DATE. There are 10 cross-sections with 20 observations each, for years ranging from 1935 to 1954. For unbalanced data, the number of observations per cross-section reported will be the largest number observed across the cross-sections.

To return the display to the original workfile directory, select View/Workfile Directory from the main workfile menu.

Identifier Indices

EViews provides series expressions and functions that provide information about the crosssection, cell, and observation IDs associated with each observation in a panel workfile.

Cross-section Index

The series expression @CROSSID provides index identifiers for each observation corresponding to the cross-section to which the observation belongs. If, for example, there are 8 observations with cross-section identifier series values (in order), “B”, “A”, “A”, “A”, “B”, “A”, “A”, and “B”, the command:

series cxid = @crossid

assigns a group identifier value of 1 or 2 to each observation in the workfile. Since the panel workfile is sorted by the cross-section ID values, observations with the identifier value “A” will be assigned a CXID value of 1, while “B” will be assigned 2.

A one-way tabulation of the CXID series shows the number of observations in each crosssection or group:

Panel Workfile Information—879

Tabulation of CXID

 

 

 

Date: 02/04/04

Time: 09:08

 

 

 

Sample: 1 8

 

 

 

 

Included observations: 8

 

 

 

Number of categories: 2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Cumulative

Cumulative

Value

Count

Percent

Count

Percent

1

5

62.50

5

62.50

2

3

37.50

8

100.00

Total

8

100.00

8

100.00

 

 

 

 

 

 

 

 

 

 

Cell Index

Similarly, @CELLID may be used to obtain integers uniquely indexing cell IDs. @CELLID numbers observations using an index corresponding to the ordered unique values of the cell or date ID values. Note that since the indexing uses all unique values of the cell or date ID series, the observations within a cross-section may be indexed non-sequentially.

Suppose, for example, we have a panel workfile with two cross-sections. There are 5 observations in the cross-section “A” with cell ID values “1991”, “1992”, “1993”, “1994”, and “1999”, and 3 observations in the cross-section “B” with cell ID values “1993”, “1996”, “1998”. There are 7 unique cell ID values (“1991”, “1992”, “1993”, “1994”, “1996”, “1998”, “1999”) in the workfile.

The series assignment

series cellid = @cellid

will assign to the “A” observations in CELLID the values “1991”, “1992”, “1993”, “1994”, “1997”, and to the “B” observations the values “1993”, “1995”, and “1996”.

A one-way tabulation of the CELLID series provides you with information about the number of observations with each index value:

880—Chapter 28. Working with Panel Data

Tabulation of CELLID

 

 

 

Date: 02/04/04

Time: 09:11

 

 

 

Sample: 1 8

 

 

 

 

Included observations: 8

 

 

 

Number of categories: 7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Cumulative

Cumulative

Value

Count

Percent

Count

Percent

1

1

12.50

1

12.50

2

1

12.50

2

25.00

3

2

25.00

4

50.00

4

1

12.50

5

62.50

5

1

12.50

6

75.00

6

1

12.50

7

87.50

7

1

12.50

8

100.00

Total

8

100.00

8

100.00

 

 

 

 

 

 

 

 

 

 

Within Cross-section Observation Index

Alternately, @OBSID returns an integer uniquely indexing observations within a cross-sec- tion. The observations will be numbered sequentially from 1 through the number of observations in the corresponding cross-section. In the example above, with two cross-section groups “A” and “B” containing 5 and 3 observations, respectively, the command:

series withinid = @obsid

would number the 5 observations in cross-section “A” from 1 through 5, and the 3 observations in group “B” from 1 through 3.

Bear in mind that while @CELLID uses information about all of the ID values in creating its index, @OBSID only uses the ordered observations within a cross-section in forming the index. As a result, the only similarity between observations that share an @OBSID value is their ordering within the cross-section. In contrast, observations that share a @CELLID value also share values for the underlying cell ID.

It is worth noting that if a panel workfile is balanced so that each cross-section has the same cell ID values, @OBSID and @CELLID yield identical results.

Workfile Observation Index

In rare cases, you may wish to enumerate the observations beginning at the first observation in the first cross-

section and ending at the last observation in the last cross-section.

Соседние файлы в папке Docs