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

380—Appendix B. Command Reference

Examples

ordered(d=l,h) y c wage edu kids

estimates an ordered logit model of Y on a constant, WAGE, EDU, and KIDS with QML standard errors. This command uses the default quadratic hill climbing algorithm.

param c(1) .1 c(2) .2 c(3) .3 c(4) .4 c(5).5

equation eq1.binary(s) y c x z

coef betahat = eq1.@coefs

eq1.makelimit gamma

estimates an ordered probit model of Y on a constant, X, and Z from the specified starting values. The estimated coefficients are then stored in the coefficient vector BETAHAT, and the estimated limit points are stored in the vector GAMMA.

Cross-references

See “Ordered Dependent Variable Models” on page 636 of the User’s Guide for additional discussion.

See binary (p. 222) for the estimation of binary dependent variable models. See also makelimits (p. 357).

output

Command || Equation View | Logl View | Pool View | Sspace View | System View | Var View

Redirect printer output or display estimation output.

When used as a command, output redirects printer output. You may specify that any procedure that would normally send output to the printer puts output in a text file, in a Rich Text Format (RTF) file, or into frozen table or graph objects in the current workfile.

When used as a view of an estimation object, output changes the default object view to display the estimation output (equivalent to using results (p. 423)).

Syntax

Command:

output[(f)] base_name

Command:

output(options) [path\]file_name

Command:

output off

Object View:

object_name.output

By default, the output command redirects the output into frozen objects. You should supply a base name after the output keyword. Each subsequent print command will create a

output—381

new table or graph object in the current workfile, using the base name and an identifying number. For example, if you supply the base name of “OUT”, the first print command will generate a table or graph named OUT01, the second print command will generate OUT02, and so on.

You can also use the optional settings, described below, to redirect table and text output to a text file or all output to an RTF file. If you elect to redirect output to a file, you must specify a filename.

When followed by the optional keyword off, the output command turns off output redirection. Subsequent print commands will be directed to the printer.

Options

Options for output command

f

Redirect all output to frozen objects in the default work-

 

file, using base_name.

 

 

t

Redirect table and text output to a text file. Graphic out-

 

put will still be sent to the printer.

 

 

r

Redirect all output to an Rich Text Format (RTF) file.

 

 

oOverwrite file if necessary. If the specified filename for text or RTF output exists, overwrite the file. The default is to append to the file.

Only applicable for RTF and text file output (specified using options “t” or “r”).

cCommand logging. Output both the output, and the command used to generate the output.

Only applicable for RTF and text file output (specified using options “t” or “r”).

Options for output view

p

Print estimation output for estimation object

 

 

Examples

output print_

causes the first print command to generate a table or graph object named PRINT_01, the second print command to generate an object named PRINT_02, and so on.

output(t) c:\data\results

equation eq1.ls(p) log(gdp) c log(k) log(l)

382—Appendix B. Command Reference

eq1.resids(g,p)

output off

The second line redirects printing to the RESULTS.TXT file, while the print option of the third line sends the graph output to the printer. The last line turns output redirection off and restores normal printer use.

If instead, the first line read:

output(r) c:\data\results

all subsequent output would be sent to the RTF file RESULTS.RTF.

The output keyword may also be used to change the default view of an estimation object. Entering the command:

eq1.output

displays the estimation output for equation EQ1.

Cross-references

See “Print Setup” beginning on page 941 of the User’s Guide for further discussion.

See also pon (p. 638), poff (p. 638).

override

Model Proc

 

 

Specifies (or merges) overridden exogenous variables and add factors in the active scenario.

Syntax

Model Proc:

model_name.override(options) ser1 [ser2 ser3 ...]

Follow the keyword with the argument list containing the exogenous variables or add factors you wish to override.

Options

m

Merge into (instead of replace) the existing override list.

 

 

Examples

mod1.override fed1 add1

creates an override list containing the variables FED1 and ADD1.

If you then issue the command:

pageappend—383

mod1.override fed1

EViews will replace the original exclude list with one containing only FED1. To add overrides to an existing list, use the “m” option:

modl.override(m) add1

The override list now contains both series.

Cross-references

See the discussion in “Specifying Scenarios” on page 798 of the User’s Guide. See also Chapter 26, “Models”, on page 775 of the User’s Guide for a general discussion of models.

See also model (p. 370), exclude (p. 289) and solveopt (p. 476).

pageappend Command

Append contents of the specified workfile page to the active workfile page.

Syntax

Command: pageappend(options) wfname[\pgname] [object_list]

where wfname is the name of a workfile that is currently in memory. You may optionally provide the name of a page in wfname that you wish to used as a source, and the list of objects to be read from the source workfile page. If no wfname is provided, EViews will use the default page in the source workfile.

The command appends the contents of the source page to the active page in the default workfile. The target page is first unstructured (if necessary) and its range is expanded to encompass the combined range of the sample from the source workfile page, and the destination page.

The default behavior is to append all series and alpha objects (but not other types) from the source page, but the optional object_list may be provided to specify specific series, or to specify objects other than series or alpha objects to be included. Command options may also be used to modify the list of objects to be included.

Note that since this operation is performed in place, the original workfile page cannot be recovered. We recommend that you consider backing up your original page using pagecopy (p. 386).

384—Appendix B. Command Reference

Options

smpl=smpl_spec

Specifies an optional sample identifying which observa-

 

tions from the source page are to be appended. Either

 

provide the sample range in double quotes or specify a

 

named sample object. The default is “@all”.

 

 

allobj

Specifies that all objects (including non-series and non-

 

alpha objects) should be appended. For objects other

 

than series and alphas, appending involves simply

 

copying the objects from the source page to the destina-

 

tion page. This option may not be used with an explicit

 

object_list specification.

 

 

match

Specifies that only series and alphas in the append page

 

that match series and alphas of the same name in the

 

active page should be appended. This option may not

 

be used with “allobj” or with an explicit object_list

 

specification.

 

 

sufix=suffix_arg

Specifies a string to be added to the end of the source

(default=“_a”)

object name, if necessary, to avoid name collision when

 

creating a new object in the target page.

 

 

obsid=arg

Provides the name of a series used to hold the date or

 

observation ID of each observation in the destination

 

workfile.

 

 

wfid=arg

Provides the name of a (boolean) series to hold an indi-

 

cator of the source for each observation in the destina-

 

tion workfile (0, if from the destination; 1, if from the

 

source).

Examples

pageappend updates

appends, to the default workfile page, all of observations in all of the series in the active page of the workfile UPDATES.

pageappend(match, smpl="1999 2003") updates

restricts the series to those which match (by name) those in the default workfile page, and restricts the observations to merge to those between 1999 and 2003.

pageappend newdat\page1 income cons

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