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

370—Appendix B. Command Reference

p

Print basic estimation results.

 

 

Examples

bvar.ml

estimates the sspace object BVAR by maximum likelihood.

Cross-references

See Chapter 22, “The Log Likelihood (LogL) Object”, on page 669 and Chapter 25, “State Space Models and the Kalman Filter”, on page 751 of the User’s Guide for a discussion of user specified likelihood and state space models.

model

Object Declaration

 

 

Declare a model object.

Syntax

Command: model model_name

The keyword model should be followed by a name for the model. To fill the model, you may use append (p. 205) or merge (p. 368).

Examples

model macro

macro.append cs = 10+0.8*y(-1)

macro.append i = 0.7*(y(-1)-y(-2))

macro.append y = cs+i+g

declares an empty model named MACRO and adds three lines to MACRO.

Cross-references

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

See also append (p. 205), merge (p. 368) and solve (p. 475).

name—371

msg

Model View

 

 

Display model solution messages.

Show view containing messages generated by the most recent model solution.

Syntax

Model View:

model_name.msg(options)

Options

p

Print the model solution messages.

 

 

Cross-references

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

See also solve (p. 475) and solveopt (p. 476).

name

Graph Proc

 

 

Change the names used for legends or axis labels in XY graphs.

Allows you to provide an alternative to the names used for legends or for axis labels in XY graphs. The name command is available only for single graphs and will be ignored in multiple graphs.

Syntax

Graph Proc:

graph_name.name(n) legend_text

Provide a series number in parentheses and legend_text for the legend (or axis label) after the keyword. If you do not provide text, the current legend will be removed from the legend/axis label.

Examples

graph g1.line(d) unemp gdp

g1.name(1) Civilian unemployment rate

g1.name(2) Gross National Product

372—Appendix B. Command Reference

The first line creates a line graph named G1 with dual scale, no crossing. The second line replaces the legend of the first series UNEMP, and the third line replaces the legend of the second series GDP.

graph g2.scat id w h

g2.name(1)

g2.name(2) weight

g2.name(3) height

g2.legend(l)

The first line creates a scatter diagram named G2. The second line removes the legend of the horizontal axis, and the third and fourth lines replace the legends of the variables on the vertical axis. The last line moves the legend to the left side of the graph.

Cross-references

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

See also displayname (p. 276).

nnfit

Group View

 

 

Nearest neighbor fit.

Displays the fit of the second series (vertical axis) on the first series (horizontal axis) in the group.

Syntax

 

Group View:

group_name.nnfit(options)

Options

 

 

 

 

 

b=fraction

Bandwidth as a fraction of the total sample. The larger

 

(default=0.3)

the fraction, the smoother the fit.

 

 

 

 

d=integer

Degree of polynomial to fit.

 

(default=1)

 

 

 

 

 

b

Bracket bandwidth span.

 

 

 

 

x

Exact (full) sampling. Default is Cleveland subsam-

 

 

pling.

open—373

integer

Approximate number of data points at which to com-

(default=100)

pute the fit (if performing Cleveland subsampling).

 

 

u

No local weighting. Default is local weighting using

 

tricube weights.

 

 

m=integer

Set number of robustness iterations.

 

 

s

Symmetric neighbors. Default is nearest neighbors.

 

 

s=name

Save fitted series.

 

 

p

Print the view.

Examples

group gr1 gdp90 gdp50

gr1.nnfit(x,m=3)

displays the nearest neighbor fit of GDP50 on GDP90 with exact (full) sampling and 3 robustness iterations. Each local regression fits the default linear regression, with tricube weighting and a bandwidth of span 0.3.

group gro1 weight height

gro1.nnfit(50,d=2,m=3)

displays the nearest neighbor fit of HEIGHT on WEIGHT by fitting approximately 50 data points. Each local regression fits a quadratic, using tricube robustness weights with 3 robustness iterations.

Cross-references

See “Scatter with Nearest Neighbor Fit” on page 400 of the User’s Guide for a discussion of nearest neighbor regressions.

See also linefit (p. 337) and kerfit (p. 329).

open

Command

 

 

Opens a program file, or text (ASCII) file.

This command should be used to open program files or text (ASCII) files for editing.

You may also use the command to open workfiles or databases. This use of the open command for this purposes is provided for backward compatibility. We recommend instead that you use the new commands wfopen (p. 532) and pageload (p. 392) to open a workfile, and dbopen (p. 266) to open databases.

374—Appendix B. Command Reference

Syntax

Command: open(options) [path\]file_name

You should provide the name of the file to be opened including the extension (and optionally a path), or the file name without an extension but with an option identifying its type. Specified types always take precedence over automatic type identification. If a path is not provided, EViews will look for the file in the default directory.

Files with the “.PRG” extension will be opened as program files, unless otherwise specified. Files with the “.TXT” extension will be opened as text files, unless otherwise specified.

For backward compatibility, files with extensions that are recognized as database files are opened as EViews databases, unless an explicit type is specified. Similarly, files with the extensions “.WF” and “.WF1”, and foreign files with recognized extensions will be opened as workfiles, unless otherwise specified.

All other files will be read as text files.

Options

p

Open file as program file.

 

 

t

Open file as text file.

 

 

type=arg

Specify text or program file type using keywords.

(prg” or “txt)

 

 

 

Examples

open finfile.txt

opens a text file named “FINFILE.TXT” in the default directory.

open "c:\program files\my files\test1.prg"

opens a program file named “TEST1.PRG” from the specified directory.

open a:\mymemo.tex

opens a text file named “MYMEMO.TEX” from the A: drive.

Cross-references

See wfopen (p. 532) and pageload (p. 392) for opening files as workfiles or workfile pages, and dbopen (p. 266) for opening database files.

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