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

260—Appendix B. Command Reference

p

Print the correlation matrix.

Examples

group grp1 height weight age

grp1.cov

displays a 3 × 3 covariance matrix for the three series in GRP1.

Cross-references

See also cor (p. 255), @cor (p. 614), and @cov (p. 614).

create

Command

 

 

Create workfile.

No longer supported. This command has been replaced by wfcreate (p. 531) and pagecreate (p. 388).

cross

Command || Group View

 

 

Displays cross correlations (correlograms) for a pair of series.

Syntax

Command: cross(n,options) ser1 ser2 [ser3 ...]

Group View:

group_name.cross(n,options)

You must specify the number of lags n to use in computing the cross correlations as the first option. In command form, EViews will create an untitled group from the specified series and groups, and will display the cross correlation view for the group. When used as a group view, cross correlations will be computed for the first two series in the group.

Options

The following options may be specified inside the parentheses after the number of lags:

p

Print the cross correlogram.

 

 

data—261

Examples

cross(36) log(m1) dlog(cpi)

displays the cross correlogram between the log of M1 and the first difference of the log of CPI, using up to 36 leads and lags.

equation eq1.arch sp500 c

eq1.makeresid(s) res_std

cross(24) res_std^2 res_std

The first line estimates a GARCH(1,1) model and the second line retrieves the standardized residuals. The third line plots the cross correlogram squared standardized residual and the standardized residual, up to 24 leads and lags . This correlogram provides a rough check of asymmetry in the ARCH effect.

Cross-references

See “Cross Correlations and Correlograms” on page 385 of the User’s Guide for discussion.

data

Command

 

 

Enter data from keyboard.

Opens an unnamed group window to edit one or more series.

Syntax

Command: data arg1 [arg2 arg3 ...]

Follow the data keyword by a list of series and group names. You can list existing names or new names. Unrecognized names will cause new series to be added to the workfile. These series will be initialized with the value “NA”.

Examples

data group1 newx newy

opens a group window containing the series in group GROUP1, and the series NEWX and NEWY.

Cross-references

See “Entering Data” on page 104 of the User’s Guide for a discussion of the process of entering data from the keyboard.

262—Appendix B. Command Reference

datelabel

Graph Proc

 

 

Control labeling of the bottom date/time axis in time plots.

dates sets options that are specific to appearance of time/date labeling. Many of the options that also affect the appearance of the date axis are set by the axis (p. 217) command with the “bottom” option. These options include tick control, label and font options, and grid lines.

Syntax

Graph Proc:

graph_name.datelabel option_list

Options

format("datestring") datestring should be one of the supported data fromats describing how the date should appear. The datestring argument should be enclosed in double-quotes. For example, "yy:mm" specifies two-digit years followed bya colon delimited and then two-digit months. EViews provides considerable flexibility in formatting your dates. See “Date Formats” on page 132 for a complete description.

interval(step_size where step_size takes one of the following values:

[,steps][,align_date]) “auto” (steps and align_date are ignored), “ends” (only label endpoints; steps and align_date are ignored), “all” (label every point; the steps and align_date options are ignored), “obs” (steps are one observation), “year” (steps are one year), “m” (steps are one month), “q” (steps are one quarter).

steps is a number (default=1) indicating the number of steps between labels.

align_date is a date specified to receive a label.

Note, the align_date should be in the units of the data being graphed, but may lie outside the current sample or workfile range.

db—263

span / –span

[Allow/Do not allow] date labels to span an interval.

 

Consider the case of a yearly label with monthly ticks.

 

If span is on, the label is centered on the 12 monthly

 

ticks. If the span option is off, year labels are put on

 

the first quarter or month of the year.

 

 

Examples

graph1.datelabel format(yyyy:mm)

will display dates using four-digit years followed by the default delimiter “:” and a twodigit month (e.g. – “1974:04”).

graph1.datelabel format(yy:mm, q)

will display a two-digit year followed by a “q” separator and then a two-digit month (e.g. – “74q04”)

graph1.datelabel interval(y, 2, 1951)

specifies labels every two years on odd numbered years.

Cross-references

See Chapter 14, “Graphs, Tables, and Text Objects”, on page 413 of the User’s Guide for a discussion of graph options.

See also axis (p. 217), scale (p. 433). options (p. 375), and setelem (p. 449).

dates

Graph Proc

 

 

See the replacement command datelabel (p. 262).

 

 

db

Command

 

 

Open or create a database.

If the specified database does not exist, a new (empty) database will be created and opened. The opened database will become the default database.

Syntax

Command: db(options) [path\]db_name [as shorthand_name]

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