- •Table of Contents
- •EViews 5.1 Update Overview
- •Overview of EViews 5.1 New Features
- •Chapter 1. EViews 5.1 Enhanced Graph Customization
- •Basic Graph Characteristics
- •Adding and Editing Text
- •Updated Graph Command Summary
- •Chapter 2. EViews 5.1 Workfile Page Creation Tools
- •Creating a New Page Using Identifiers
- •Updated Workfile Page Command Summary
- •Chapter 3. EViews 5.1 Panel and Pool Testing
- •Omitted Variables Test
- •Redundant Variables Test
- •Fixed Effects Testing
- •Hausman Test for Correlated Random Effects
- •Updated Panel and Pool Command Summary
- •Chapter 4. EViews 5.1 EcoWin Database Support
- •Interactive Graphical Interface
- •Tips for Working with EcoWin Databases
- •Updated EcoWin Command Summary
- •Chapter 5. EViews 5.1 Miscellaneous Features
- •Enhanced Copy Command
- •Equation Forecast Coefficient Uncertainty
- •Additional GARCH Output
- •Global Default for Maximum Number of Errors
- •Chapter 6. EViews 5.1 Command Reference Update Summary
- •addtext
- •area
- •axis
- •copy
- •dbopen
- •draw
- •drawdefault
- •errbar
- •fixedtest
- •forecast
- •garch
- •hilo
- •legend
- •line
- •linkto
- •makegarch
- •makemap
- •pagecreate
- •options
- •ranhaus
- •scat
- •setelem
- •spike
- •template
- •testadd
- •testdrop
- •textdefault
- •xyline
- •xypair
- •Index
- •area 45
- •Axis
- •Bar graph 49
- •Conditional variance
- •Coordinates
- •Copy
- •Create
- •workfile page 84
- •Database
- •Drag(ging)
- •Error bar graph 63
- •EViews Enterprise Edition 31
- •Fixed effects
- •Font options
- •Forecast
- •Frequency conversion 51
- •GARCH
- •Graph
- •border 5
- •color settings 5
- •modifying 5
- •place text in 8, 42, 107
- •scatterplot graph 94
- •Legend
- •line 76
- •makegarch 83
- •Open
- •Page
- •Pie graph 91
- •Random effects
- •Test
- •Workfile
- •create page in 84
- •xypair 114
EViews 5.1 Command Reference Update Summary—73
Cross-references
See legend (p. 102) and textdefault (p. 136).
area
Command || Coef View | Graph Command | Group View | Matrix View | Rowvector View | Series View | Sym View | Vector View
Display area graph view of the object or change existing graph object type to area graph.
Create area or filled line graph from one or more series, or from each column of a matrix object.
Syntax
Command: |
area(options) arg1 [arg2 arg3 ...] |
Object View: |
object_name.area(options) |
Graph Proc: |
graph_name.area(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. |
|
|
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 area graph. |
|
|
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. |
|
|
74—Chapter 6. EViews 5.1 Command Reference Update Summary
n |
Normalized scale (zero mean and unit standard devia- |
|
tion). May not be used with the “s” option. |
|
|
s |
Stacked area graph. Each area represents the cumula- |
|
tive total of the series listed. The difference between |
|
areas corresponds to the value of a series. May not be |
|
used with the “l” option. |
|
|
l |
Area graph for the first series listed and a line graph for |
|
all subsequent series. May not be used with the “s” |
|
option. |
|
|
m |
Plot areas 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.
panel=arg |
Panel data display: “stack” (stack the cross-sections), |
(default taken |
“individual” or “1” (separate graph for each cross-sec- |
from global set- |
tion), “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). |
|
|
The options which support the “-” may be proceeded by a “+” or “-” indicating whether to turn on or off the option. The “+” is optional.
Examples
group g1 ser1 ser2 ser3
g1.area(s)
defines a group G1 containing the three series SER1, SER2 and SER3, then plots a stacked area graph of the series in the group.
EViews 5.1 Command Reference Update Summary—75
area(l, o=gra1) s1 gdp cons
creates an area graph of series S1, together with line graphs of GDP and CONS. The graph uses options from graph GRA1 as a template.
g1.area(o=midnight, b, w)
creates an area graph of the group G1, using the settings of the predefined template “midnight”, applying the bold and wide modifiers.
Cross-references
See Chapter 1, “EViews 5.1 Enhanced Graph Customization”, on page 33 for a detailed discussion of graphs in EViews, and “Graph Templates” on page 38 for a discussion of graph templates. See graph for graph declaration and other graph types.
axis |
Graph Proc |
|
|
Sets axis display characteristics for the graph.
Syntax
Graph Proc: |
graph_name.axis(axis_id) options_list |
The axis_id parameter identifies which of the axes the proc modifies. If no option is specified, the proc will modify all of the axes. axis_id may take on one of the following values:
left / l |
Left vertical axis. |
|
|
right / r |
Right vertical axis. |
|
|
bottom / b |
Bottom axis. |
|
|
top / t |
Top axis. |
|
|
all / a |
All axes. |
|
|
Options
The options list may include any of the following options:
grid / -grid |
[Draw / Do not draw] grid lines. |
|
|
zeroline / -zero- |
[Draw / Do not draw] a line at zero on the data scale. |
line |
|
|
|
ticksout |
Draw tickmarks outside the graph axes. |
|
|
ticksin |
Draw tickmarks inside the graph axes. |
76—Chapter 6. EViews 5.1 Command Reference Update Summary
ticksboth
ticksnone
minor /
-minor
label /
-label
font([face], [pt], [+/- b], [+/- i], [+/- u], [+/- s])
textcolor(arg)
mirror / -mirror
Draw tickmarks both outside and inside the graph axes.
Do not draw tickmarks.
[Allow / Do not allow] minor tick marks.
[Place / Do not place] labels on the axes.
Set characteristics of 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 background 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.
[Label / Do not label] both left and right axes with duplicate axes (single scale graphs only).
The options which support the “-” may be proceeded by a “+” or “-” indicating whether to turn on or off the option. The “+” is optional.
Note that the default settings are taken from the Global Defaults.
Examples
graph1.axis(r) zeroline -minor font(12)
draws a horizontal line through the graph at zero on the right axis, removes minor ticks, and changes the font size of the right axis labels to 12 point.
graph2.axis -mirror
turns of mirroring of axes in single scale graphs.
mygra1.axis font("Times", 12, b, i) textcolor(blue)
sets the axis font to blue “Times” 12pt bold italic.
EViews 5.1 Command Reference Update Summary—77
Cross-references
See Chapter 1, “EViews 5.1 Enhanced Graph Customization”, on page 33 for a discussion of graph options.
See also scale, datelabel, options (p. 117) and setelem (p. 126).
bar
Command || Coef View | Graph Command | Group View | Matrix View | Rowvector View | Series View | Sym View | Vector View
Display bar graph of object, or change existing graph object type to bar graph.
Create bar graph from one or more series or from each column of a matrix object.
Note: when the individual bars in a bar graph become too thin to be distinguished, the graph will automatically be converted into an area graph (see area (p. 73)).
Syntax
Command: |
bar(options) arg1 [arg2 arg3 ...] |
Object View: |
object_name.bar(options) |
Graph Proc: |
graph_name.bar(options) |
When used as a graph proc, bar changes the graph type to a bar graph.
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 bar graph. |
|
|
The options which support the “-” may be proceeded by a “+” or “-” indicating whether to turn on or off the option. The “+” is optional.
78—Chapter 6. EViews 5.1 Command Reference Update Summary
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 bar graph. Each bar represents the cumulative |
|
total of the series listed. The difference between bars |
|
corresponds to the value of the corresponding stacked |
|
series. May not be used with the “l” option. |
|
|
l |
Bar graph for the first series and a line graph for all sub- |
|
sequent series. May not be used with the “s” option. |
|
|
m |
Plot bars in multiple graphs. Will override the “s” and |
|
the “l” options. Not for use with an existing graph |
|
object. |
|
|
Panel options
The following options apply when graphing panel structured data:
panel=arg |
Panel data display: “stack” (stack the cross-sections), |
(default taken |
“individual” or “1” (separate graph for each cross-sec- |
from global set- |
tion), “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
Plot a bar graph of POP together with line graphs of GDP and CONS:
