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

86—Chapter 6. EViews 5.1 Command Reference Update Summary

copy "c:\my data\dba.edb::ser01" ser02

which copies the object SER01 from the database DBA.EDB located in the path “C:\MY DATA\” to SER02 in the default workfile page.

copy gd* "c:\my data\findat::"

makes a duplicate of all objects in the default page of the current workfile with names starting with "GD" to the database FINDAT in the root of “C:\MY DATA\”.

Cross-references

See “Copying Objects”of the User’s Guide for a discussion of copying and moving objects.

See also fetch, setconvert, store, and linkto (p. 106).

dbopen

Command

 

 

Open an existing database.

Syntax

 

Command:

dbopen(options) [path\]db_name [as shorthand_name]

Follow the dbopen keyword with the name of a database. You should include a path name to open a database not in the default path. The opened database will become the default database.

You may use the “as” keyword to provide an optional shorthand_name or a short text label which is used to refer to the open database in commands and programs. If you leave this field blank, a default shorthand_name will be assigned automatically. See “Database Shorthands” in the User’s Guide for additional discussion.

By default, EViews will use the extension of the database file to determine type. For example, files with the extension “.EDB” will be opened as an EViews database, while files with the extension “.IN7” will be opened as a GiveWin database. You may use options to specify an explicit type.

Options

type=arg, t=arg Specify the database type: AREMOS-TSD (“a”, “aremos”, “tsd”), DRIBase (“b”, “dribase”), EViews (“e”, “evdb”), FAME (“f”, “fame”), GiveWin/PcGive (“g”, “give”), Haver Analytics (“h”, “haver”), Rats Portable/ Troll (“l”, “trl”), RATS 4.x (“r”, “rats”), TSP portable (“t”, “tsp”), EcoWin (“ecowin”).

EViews 5.1 Command Reference Update Summary—87

The following options may be required when connecting to a remote server:

s=server_ id,

Server name.

server=server_id

 

 

 

u=user,

Username.

username=user

 

 

 

p=pswd,

Password.

password=pswd

 

 

 

Examples

dbopen c:\data\us1

opens a database named US1 in the C:\DATA directory. The command:

dbopen us1

opens a database in the default path. If the specified database does not exist, EViews will issue an error message. You should use db or dbcreate to create a new database.

Cross-references

See Chapter 10, “EViews Databases” of the User’s Guide for a discussion of EViews databases.

See also db and dbcreate.

draw

Graph Proc

 

 

Place horizontal or vertical lines and shaded areas on the graph.

Syntax

Graph Proc:

graph_name.draw(draw_type, axis_id [,options]) position1

 

[position2]

where draw_type may be one of the following:

line / l

A line

 

 

shade

A shaded area

Note that the “dashline” option has been removed (though it is supported for backward compatibility). You should use the “pattern” option to specify whether the line is solid or patterned.

88—Chapter 6. EViews 5.1 Command Reference Update Summary

axis_id may take the values:

left / l

Draw a horizontal line or shade using the left axis to

 

define the drawing position

 

 

right / r

Draw a horizontal line or shade using the right axis to

 

define the drawing position

 

 

bottom / b

Draw a vertical line or shade using the bottom axis to

 

define the drawing position

 

 

If drawing a line, the drawing position is taken from position1. If drawing a shaded area, you must provide a position1 and position2 to define the boundaries of the shaded region.

Line/Shade Options

The following options may be provided to change the characteristics of the specified line or shade. Any unspecified options will use the default text settings of the graph.

color(arg)

Specifies the color of the line or shade. the argument

 

may be made up of n1, n2, and n3, a set of three inte-

 

gers from 0 to 255, representing the RGB values of the

 

line or shade, or it may be one of the predefined color

 

keywords (“blue”, “red”, “green”, “black”, “white”,

 

“purple”, “orange”, “yellow”, “gray”, “ltgray”). For a

 

full description of the keywords, see setfillcolor.

 

The default is black for lines and gray for shades. RGB

 

values may be examined by calling up the color palette

 

in the Graph Options dialog.

 

 

pattern(index)

Sets the line pattern to the type specified by index.

 

index can be an integer from 1 to 12 or one of the

 

matching keywords (“solid”, “dash1” through

 

“dash10”, “none”). See setelem (p. 126) for a descrip-

 

tion of the available patterns. The “none” keyword

 

turns on solid lines.

 

 

width(n1)

Specify the width, where n1 is the line width in points

 

(used only if object_type is “line” or “dashline”). The

 

default is 0.5 points.

 

 

Examples

graph1.draw(line, left, rgb(0,0,127)) 5.25

draws a horizontal blue line at the value “5.25” as measured on the left axis while:

EViews 5.1 Command Reference Update Summary—89

graph1.draw(shade, right) 7.1 9.7

draws a shaded horizontal region bounded by the right axis values “7.1” and “9.7”. You may also draw vertical regions by using the “bottom” axis_id:

graph1.draw(shade, bottom) 1980:1 1990:2

draws a shaded vertical region bounded by the dates “1980:1” and “1990:2”.

graph1.draw(line, bottom, pattern(dash1)) 1985:1

draws a vertical dashed line at “1985:1”.

Cross-references

See Chapter 1, “EViews 5.1 Enhanced Graph Customization”, on page 33 for a discussion of graph options.

See drawdefault (p. 89) for setting defaults.

drawdefault

Graph Proc

 

 

Change default settings for lines and shaded areas in the graph.

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

Syntax

Graph Proc:

graph_name.drawdefault draw_options

where draw_options may include one or more of the following:

linecolor(arg)

Sets the default color for lines. The arg value may set by

 

using one of the color keywords (e.g., “blue”), or by

 

using the RGB values (e.g., “@RGB(255, 255, 0)”). For

 

a description of the available color keywords (“blue”,

 

“red”, “green”, “black”, “white”, “purple”, “orange”,

 

“yellow”, “gray”, “ltgray”). For a full description of the

 

keywords, see setfillcolor.

 

 

90—Chapter 6. EViews 5.1 Command Reference Update Summary

shadecolor(arg)

Sets the default color for shades. 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, represent-

 

ing 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.

 

 

width(n1)

Specify the width, where n1 is the line width in points

 

(used only if object_type is “line” or “dashline”). The

 

default is 0.5 points.

 

 

pattern(index)

Sets the default line pattern to the type specified by

 

index. index can be an integer from 1 to 12 or one of

 

the matching keywords (“solid”, “dash1” through

 

“dash10”, “none”). See setelem (p. 126) for a descrip-

 

tion of the available patterns. The “none” keyword

 

turns on solid lines.

 

 

existing

Apply the default settings to all existing line/shade

 

objects in the graph.

 

 

Examples

graph1.drawdefault linecolor(blue) width(.25) existing

changes the default setting for new line/shade objects. New lines added to the graph will now be drawn in blue, with a width of 0.25 points. In addition, all existing line and shade objects will be updated with the graph default settings. Note that in addition to the line color and width settings specified in the command, the existing default line pattern and shade colors will be applied to the line and shade objects in graph.

graph1.drawdefault existing

updates all line and shade objects in the graph with the currently specified default draw object settings.

Cross-references

See Chapter 1, “EViews 5.1 Enhanced Graph Customization”, on page 33 for a discussion of graph options. See also draw (p. 87).

Соседние файлы в папке EViews5
  • #
    23.03.201519.56 Кб19EV5help.cnt
  • #
    23.03.2015192.68 Кб19EV5Help.GID
  • #
    23.03.201513.28 Mб19EV5help.hlp
  • #
    23.03.20151.19 Mб71EViews 5.1 Update.pdf
  • #
    23.03.201551 б20EViews32.ini
  • #
    23.03.2015654 б19Eviews5.exe.manifest
  • #
    23.03.2015995 б18EVX11.PIF
  • #
    23.03.201540.58 Кб20F77L3.EER
  • #
    23.03.2015424.32 Кб22johtab.bin