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

442—Appendix B. Command Reference

Examples

freeze(gra_ip) ipnsa.seasplot

creates a graph object named GAR_IP that contains the stacked seasonal line graph view of the series IPNSA.

Cross-references

See “Spreadsheet and Graph Views” on page 307 of the User’s Guide for a brief discussion of seasonal line graphs.

See also seas (p. 440), x11 (p. 548) and x12 (p. 550).

series

Object Declaration

 

 

Declare a series object.

The series command creates and optionally initializes a series, or modifies an existing series.

Syntax

Command: series ser_name[=formula]

The series command should be followed by either the name of a new series, or an explicit or implicit expression for generating a series. If you create a series and do not initialize it, the series will be filled with NAs. Rules for composing a formula are given in “Numeric Expressions” on page 127 of the User’s Guide.

Examples

series x

creates a series named X filled with NAs.

Once a series is declared, you do not need to include the series keyword prior to entering the formula. The following example generates a series named LOW that takes value 1 if either INC is less than or equal to 5000 or EDU is less than 13, and 0 otherwise.

series low

low = inc<=5000 or edu<13

This example solves for the implicit relation and generates a series named Z which is the double log of Y so that Z=log(log(Y)).

series—443

series exp(exp(z)) = y

The command:

series z = (x+y)/2

creates a series named Z which is the average of series X and Y.

series cwage = wage*(hrs>5)

generates a series named CWAGE which is equal to WAGE if HRS exceeds 5, and zero otherwise.

series 10^z = y

generates a series named Z which is the base 10 log of Y.

The commands:

series y_t = y

smpl if y<0

y_t = na

smpl @all

generate a series named Y_T which replaces negative values of Y with NAs.

series z = @movav(x(+2),5)

creates a series named Z which is the centered moving average of the series X with two leads and two lags.

series z = (.5*x(6)+@movsum(x(5),11)+.5*x(-6))/12

generates a series named Z which is the centered moving average of the series X over twelve periods.

genr y = 2+(5-2)*rnd

creates a series named Y which is a random draw from a uniform distribution between 2 and 5.

series y = 3+@sqr(5)*nrnd

generates a series named Y which is a random draw from a normal distribution with mean 3 and variance 5.

Cross-references

There is an extensive set of functions that you may use with series:

444—Appendix B. Command Reference

A list of mathematical functions is presented in Appendix D, “Operator and Function Reference”, on page 573.

Workfile functions that provide information about observations identifiers or allow you to construct time trends are described in Appendix E, “Workfile Functions”, on page 589.

Functions for working with strings and dates are documented in “String Function Summary” on page 129 and “Date Function Summary” on page 152 .

See “Numeric Expressions” on page 127 of the User’s Guide for a discussion of rules for forming EViews expressions.

set

Sample Proc

 

 

Set the sample in a sample object.

The set procedure resets the sample of an existing sample object.

Syntax

Sample Proc:

sample_name.set sample_description

Follow the set command with a sample description. See sample for instructions on describing a sample.

Examples

sample s1 @first 1973

s1.set 1974 @last

The first line declares and defines a sample object named S1 from the beginning of the workfile range to 1973. The second line resets S1 from 1974 to the end of the workfile range.

Cross-references

See “Samples” on page 93 of the User’s Guide for a discussion of samples in EViews.

See also sample (p. 429) and smpl (p. 474).

setbpelem—445

setbpelem

Graph Proc

 

 

Enable/disable individual boxplot elements.

Syntax

 

Graph Proc:

graph_name.setbpelem element_list

The element_list may contain one or more of the following:

median, med / [Show / Do not show] the medians. -median, -med

mean / -mean

whiskers, w /

-whiskers, -w

staples, s

/ -staples, -s

near / -near

[Show / Do not show] the means.

[Show / Do not show] the whiskers (lines from the box to the staples).

[Show / Do not show] the staples (lines drawn at the last data point within the inner fences).

[Show /Do not show] the near outliers (values between the inner and outer fences).

far / -far

[Show / Do not show] the far outliers (values beyond

 

the outer fences).

 

 

width(arg)

Set the width settings for the boxplots, where arg is one

(default

of: “fixed” (uniform width), “n” (proportional to sam-

=“fixed”)

ple size), “rootn” (proportional to the square root of

 

sample size).

 

 

ci=arg

Set the display method for the confidence intervals,

(default=

where arg is one of: “none” (do not display), “shade”

“shade”)

(shaded intervals), “notch” (notched intervals).

ci=arg (default

 

= “shade”)

 

Examples

graph01.setbpelem -far width(n) ci(notch)

hides the far outliers, sets the box widths proportional to the number of observations, and enables notching of the confidence intervals.

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