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

478—Appendix B. Command Reference

Cross-references

See Chapter 26, “Models”, on page 775 of the User’s Guide for a discussion of models.

See also model (p. 370), msg (p. 371) and solve (p. 475).

sort

Command

 

 

Sort the workfile.

The sort command sorts all series in the workfile on the basis of the values of one or more of the series. For purposes of sorting, NAs are considered to be smaller than any other value. By default, EViews will sort the series in ascending order. You may use options to override the sort order.

EViews will first remove any workfile structures and then will sort the workfile using the specified settings.

Syntax

Command: sort(options) arg1 [arg2 arg3…]

List the name of the series or groups by which you wish to sort the workfile. If you list two or more series, sort uses the values of the second series to resolve ties from the first series, and values of the third series to resolve ties from the second, and so on.

Options

d

sort in descending order.

 

 

Examples

sort(d) inc

sorts all series in the workfile in order of the INC series with the highest value of INC first. NAs in INC (if any) will be placed at the bottom.

sort gender race wage

sorts all series in the workfile in order of the values of GENDER from low to high, with ties resolved by ordering on the basis of RACE, with further ties resolved by ordering on the basis of WAGE.

Cross-references

See “Sorting a Workfile” on page 257 of the User’s Guide.

spike—479

spec

Logl View | Model View | Sspace View | System View

 

 

Display the text specification view for logl, model, sspace, system objects.

Syntax

Object View:

object_name.spec(options)

Options

p

Print the specification text.

 

 

Examples

model1.spec

displays the specification of the object MODEL1.

Cross-references

See also append (p. 205), merge (p. 368), text (p. 508).

spike

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

Display spike graph view of data, or change existing graph object type to spike.

The spike graph view of a series or group creates spike graphs for all specified series or matrix columns.

Syntax

Command:

spike arg1 [arg2 arg3 ...]

Object View:

object_name.spike(options)

Graph Proc:

graph_name.spike(options)

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.

480—Appendix B. Command Reference

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 spike 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

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 spike graph. Each segment represents the

 

cumulative total of the series listed (may not be used

 

with the “l” option).

 

 

l

Spike graph for the first series listed and a line graph for

 

all subsequent series (may not be used with the “s”

 

option).

mPlot spikes in multiple graphs (will override the “l” option). Not for use with an existing graph object.

Panel options

The following options apply when graphing panel structured data.

spike—481

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.spike(d)

plots line graphs of the three series in group G1 using dual scaling.

matrix1.spike(t=mygra)

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

graph1.spike(d)

changes GRAPH1 so that it contains spike graphs of each of the series in the original graph, using dual scaling.

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

creates a spike 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 additional graph types.

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