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

332—Appendix B. Command Reference

The “mname=” option stores a q × 6 matrix, where q = m + 1 if there are no exogenous variables in the VAR; otherwise q = m + 2 . The first ( q − 1 ) rows contain the information displayed in the table view, following the same order. The saved matrix has an additional row which contains the lag order selected from each column criterion. The first column (corresponding to the log likelihood values) of the last row is always an NA.

Examples

var var1.ls 1 6 lgdp lm1 lcpi

show var1.laglen(12,vname=v1)

The first line declares and estimates a VAR. The second line computes the lag length criteria up to a maximum of 12 lags and stores the selected lag orders in a vector named V1.

Cross-references

See Chapter 24, “Vector Autoregression and Error Correction Models”, on page 719 of the User’s Guide for a discussion of the various criteria and other VAR diagnostics.

See also testlags (p. 506).

legend

Graph Proc

 

 

Set legend appearance and placement in graphs.

When legend is used with a multiple graph, the legend settings apply to all graphs. See setelem (p. 449) for setting legends for individual graphs in a multiple graph.

Syntax

Graph Proc:

graph_name.legend option_list

Note: the syntax of the legend proc has changed considerably from version 3.1 of EViews. While not documented here, the EViews 3 options are still (for the most part) supported. However, we do not recommend using the old options as future support is not guaranteed.

Options

columns(arg) Columns for legend: “auto” (automatically choose num- (default=“auto”) ber of columns), int (put legend in specified number of

columns).

display/–display

Display/do not display the legend.

 

 

inbox/–inbox

Put legend in box/remove box around legend.

 

 

legend—333

position(arg)

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

textcolor(arg)

fillcolor(arg)

framecolor(arg)

Position for legend: “left” or ”l” (place legend on left side of graph), “right” or “r” (place legend on right side of graph), “botleft” or “bl” (place left-justified legend below graph), “botcenter” or “bc” (place centered legend below graph), “botright” or “br” (place right-justi- fied legend below graph), “(h, v)” (the first number h specifies the number of virtual inches to offset to the right from the origin. The second number v specifies the virtual inch offset below the origin. The origin is the upper left hand corner of the graph).

Set characteristics of legend 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 color of the legend 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 background fill color of the legend 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 color of the legend 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).

334—Appendix B. Command Reference

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

The default settings are taken from the global defaults.

Examples

mygra1.legend display position(l) inbox

places the legend of MYGRA1 in a box to the left of the graph.

mygra1.legend position(.2,.2) -inbox

places the legend of MYGRA1 within the graph, indented slightly from the upper left corner with no box surrounding the legend text.

mygra1.legend font("Times", 12, b, i) textcolor(red) fillcolor(blue) framecolor(blue)

sets the legend font to red “Times” 12pt bold italic, and changes both the legend fill and frame colors to blue.

Cross-references

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

See addtext (p. 201) and textdefault (p. 508). See setelem (p. 449) for changing legend text and other graph options. See also “Graph” (p. 161) for a summary of the graph object command language.

line

Command || Coef View | Graph Command | Group View | Matrix View | Rowvector View | Series View | Sym View | Vector View

Display a line graph of object, or change existing graph object type to line plot.

The line graph view of a group plots all series in the group in a graph. The line graph view of a matrix plots each column in the matrix in a graph.

Syntax

Command:

line(options) arg1 [arg2 arg3 ...]

Object View:

object_name.line(options)

Graph Proc:

graph_name.line(options)

line—335

Options

Template and printing options

o= template

Use appearance options from the specified template.

 

template may be a predefined template keyword

 

(‘default” - current global defaults, “classic”, “modern”,

 

“reverse”, “midnight”, “spartan”, “monochrome”) or a

 

graph in the workfile.

 

 

t=graph_name

Use appearance options and copy text and shading from

 

the specified graph.

 

 

b / -b

[Apply / Remove] bold modifiers of the base template

 

style specified using the “o=” option above.

 

 

w / -w

[Apply / Remove] wide modifiers of the base template

 

style specified using the “o=” option above.

 

 

p

Print the line graph.

 

 

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

Scale options (for multiple line views of group and matrix objects)

a (default)

Automatic single scale.

 

 

d

Dual scaling with no crossing. The first series is scaled

 

on the left and all other series are scaled on the right.

 

 

x

Dual scaling with possible crossing. See the “d” option.

 

 

n

Normalized scale (zero mean and unit standard devia-

 

tion). May not be used with the “s” option.

 

 

s

Stacked line graph. Each area represents the cumulative

 

total of the series listed. The difference between areas

 

corresponds to the value of a series. May not be used

 

with the “l” option.

 

 

m

Plot lines in multiple graphs (will override the “s” or “l”

 

options). Not for use with an existing graph object.

Panel options

The following options apply when graphing panel structured data:

336—Appendix B. Command Reference

panel=arg

Panel data display: “stack” (stack the cross-sections),

(default taken

“individual” or “1” (separate graph for each cross-sec-

from global settion), “combine” or “c” (combine each cross-section in

tings)

single graph; one time axis), “mean” (plot means

 

across cross-sections), “mean1se” (plot mean and +/-

 

1 standard deviation summaries), “mean2sd” (plot

 

mean and +/- 2 s.d. summaries), “mean3sd” (plot

 

mean and +/- 3 s.d. summaries), “median” (plot

 

median across cross-sections), “med25” (plot median

 

and +/- .25 quantiles), “med10” (plot median and +/-

 

.10 quantiles), “med05” (plot median +/- .05 quan-

 

tiles), “med025” (plot median +/- .025 quantiles),

 

“med005” (plot median +/- .005 quantiles), “med-

 

mxmn” (plot median, max and min).

Examples

group g1 gdp cons m1

g1.line(d)

plots line graphs of the three series in group G1 with dual scaling (no crossing). The latter two series will share the same scale.

matrix1.line(t=mygra)

displays line graphs of the columns of MATRIX1 using the graph object MYGRA as a template.

line(m) gdp cons m1

creates an untitled graph object that contains three line graphs of GDP, CONS, and M1, with each plotted separately.

g1.line(o=midnight, b, w)

creates a line graph of the group G1, using the settings of the predefined template “midnight”, applying the bold and wide modifiers.

Cross-references

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

See also graph (p. 316) for graph declaration and other graph types.

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