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

506—Appendix B. Command Reference

testlags

Var View

 

 

Perform lag exclusion (Wald) tests on a VAR.

Syntax

Var View:

var_name.testlags(options)

Options

name=arg Save the Wald test statistics in named matrix object. See below for a description of the statistics contained in the stored matrix.

p Print the result of the test.

The “name=” option stores results in an m × ( k + 1) matrix, where m is the number of lagged terms and k is the number of endogenous variables in the VAR. In the first k columns, the i-th row, j-th column entry is the Wald statistic for the joint significance of all i- th lagged endogenous variables in the j-th equation. These Wald statistics have a χ2 distribution with k degrees of freedom under the exclusion null.

In the last column, the i-th row contains the system Wald statistic for testing the joint significance of all i-th lagged endogenous variables in the VAR system. The system Wald statistics has a chi-square distribution with k2 degrees of freedom under the exclusion null.

Examples

var var1.ls 1 6 lgdp lm1 lcpi

freeze(tab1) var1.testlags(name=lags)

The first line declares and estimates a VAR. The second line stores the lag exclusion test results in a table named TAB1, and stores the Wald statistics in a matrix named LAGS.

Cross-references

See “Diagnostic Views” on page 722 of the User’s Guide for a discussion other VAR diagnostics.

See also laglen (p. 331) and testexog (p. 504).

teststat—507

teststat

Series View

 

 

Test simple hypotheses of whether the mean, median, or variance of a series is equal to a specified value.

Syntax

Series View:

series_name.teststat(options)

Specify the type of test and the value under the null hypothesis as an option.

Options

mean=number Test the null hypothesis that the mean equals the specified number.

med=number Test the null hypothesis that the median equals the specified number.

var=number Test the null hypothesis that the variance equals the specified number. The number must be positive.

std=number Test equality of mean conditional on the specified standard deviation. The standard deviation must be positive.

p

Print the test results.

 

 

Examples

smpl if race=1

lwage.teststat(var=4)

tests the null hypothesis that the variance of LWAGE is equal to 4 for the subsample with RACE=1.

Cross-references

See “Tests for Descriptive Stats” on page 313 of the User’s Guide for a discussion of simple hypothesis tests.

See also testbtw (p. 501), testby (p. 502).

508—Appendix B. Command Reference

text

Object Declaration || Model View | Text View

 

 

Declare a text object when used as a command, or display text representation of the model specification or text object.

Syntax

Command:

text object_name

Model View:

model_name.text(options)

Text View:

text_name.text(options)

Follow the keyword with a name of the text object. When used as a model view, text is equivalent to spec (p. 479).

Options

p

Print the model text specification.

 

 

Examples

text notes1

declares a text object named NOTES1.

Cross-references

See Chapter 26, “Models”, on page 775 of the User’s Guide for further details on models. See Chapter 14, “Graphs, Tables, and Text Objects”, on page 413 of the User’s Guide for a discussion of text objects in EViews.

See also spec (p. 479).

textdefault

Graph Proc

 

 

Change default settings for text objects in the graph.

This command specifies changes in the default settings which will be applied to text objects added subsequently to the graph. If you include the “existing” option, all of the text default settings will also be applied to existing text objects in the graph.

Syntax

Graph Proc:

graph_name.textdefault text_options

where text_options include one or more of one of the following:

textdefault—509

font([face], [pt], [+/- b], [+/- i], [+/- u], [+/- s])

textcolor(arg)

fillcolor(arg)

framecolor(arg)

existing

Set characteristics of default text font. The font name (face), size (pt), and characteristics are all optional. face should be a valid font name, enclosed in double quotes. pt. should be the font size in points. The remaining options specify whether to turn on/off boldface (b), italic (i), underline (u), and strikeout (s) styles.

Sets the default color of the text. arg may be one of the predefined color keywords, or it may be made up of n1, n2, n3, a set of three integers from 0 to 255, representing the RGB values of the color. For a description of the available color keywords (“blue”, “red”, “green”, “black”, “white”, “purple”, “orange”, “yellow”, “gray”, “ltgray”), see setfillcolor (p. 453).

Sets the default background fill color of the text box. arg may be one of the predefined color keywords, or it may be made up of n1, n2, n3, a set of three integers from 0 to 255, representing the RGB values of the color. For a description of the available color keywords (“blue”, “red”, “green”, “black”, “white”, “purple”, “orange”, “yellow”, “gray”, “ltgray”), see setfillcolor (p. 453).

Sets the default color of the text box frame. arg may be one of the predefined color keywords, or it may be made up of n1, n2, n3, a set of three integers from 0 to 255, representing the RGB values of the color. For a description of the available color keywords (“blue”, “red”, “green”, “black”, “white”, “purple”, “orange”, “yellow”, “gray”, “ltgray”), see setfillcolor

(p. 453).

Apply the default settings to all existing text objects in the graph.

The options which support the “-” may be proceeded by a “+” or “-” indicating whether to turn on or off the option. The “+” is optional.

510—Appendix B. Command Reference

Examples

graph1.textdefault font("Arial", b) fillcolor(gray) existing

changes the defaulat text settings for new text objects so that new text is in Arial bold, using the current default font size and color. Should the new text be enclosed in a box, the box will have a gray fill. Additionally, the “existing” keyword specifies that existing text objects in the graph will be updated with the current text settings. Note that in addition to the font type and fill color specified in the command, all text default settings will be applied to the existing text.

graph1.textdefault existing

updates the text objects in GRAPH1 with the current text default settings.

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 addtext (p. 201) and legend (p. 332). See also “Graph” (p. 161) for a summary of the graph object command language.

tic

Command

 

 

Reset the timer.

Syntax

Command: tic

Examples

The sequence of commands:

tic

[some commands]

toc

resets the timer, executes commands, and then displays the elapsed time in the status line. Alternatively:

tic

[some commands]

!elapsed = @toc

toc—511

resets the time, executes commands, and saves the elapsed time in the control variable !ELAPSED.

Cross-references

See also toc (p. 511) and @toc (p. 643).

toc

Command

 

 

Display elapsed time (since timer reset) in seconds.

Syntax

Command: toc

Examples

The sequence of commands:

tic

[some commands]

toc

resets the timer, executes commands, and then displays the elapsed time in the status line. The set of commands:

tic

[some commands]

!elapsed = @toc

[more commands]

toc

resets the time, executes commands, saves the elapsed time in the control variable !ELAPSED, executes additional commands, and displays the total elapsed time in the status line.

Cross-references

See also tic (p. 510) and @toc (p. 643).

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