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

representations—417

For powerful, easy-to-use tools for reading data into a new workfile, see “Creating a Workfile by Reading from a Foreign Data Source” on page 51 of the User’s Guide, pageload (p. 392), and wfopen (p. 532).

See also write (p. 545).

rename

Command

 

 

Rename an object in the active workfile or database.

Syntax

Command: rename old_name new_name

After the rename keyword, list the old object name followed by the new name. Note that the name specifications may include matching wildcard patterns.

Examples

rename temp_u u2

renames an object named TEMP_U as U2.

rename aa::temp_u aa::u2

renames the object TEMP_U to U2 in database AA.

rename a* b*

renames all objects beginning with the letter “A” to begin with the letter “B”.

Cross-references

See Chapter 4, “Object Basics”, on page 71 of the User’s Guide for a discussion of working with objects in EViews.

representations Equation View | Pool View | Var View

Display text of specification for equation, pool, and var objects.

Syntax

Object View:

object_name.representation(options)

Options

p

Print the representation text.

 

 

418—Appendix B. Command Reference

Examples

pool1.representations

displays the specifications of the estimation object POOL1.

Cross-references

See also spec (p. 479).

resample

Group Proc | Series Proc

 

 

Resample from observations in a series or group.

Syntax

Object Proc:

object_name.resample(options) [output_spec]

You should follow the resample keyword and options with a list of names or a wildcard expression identifying the series to hold the output. If a list is used to identify the targets, the number of target series must match the number of names implied by the keyword.

Options

outsmpl=smpl_s

Sample to fill the new series. Either provide the sample

pec

range in double quotes or specify a named sample

 

object. The default is the current workfile sample.

 

 

name=

Name of group to hold created series.

group_name

 

 

 

permute

Draw from rows without replacement. Default is to

 

draw with replacement.

 

 

weight=

Name of series to be used as weights. The weight series

series_name

must be non-missing and non-negative in the current

 

workfile sample. The default is equal weights.

 

 

block=integer

Block length for each draw. Must be a positive integer.

 

The default block length is 1.

 

 

withna (default)

[Draw / Do not draw] from all rows in the current sam-

 

ple, including those with NAs.

 

 

dropna

Do not draw from rows that contain missing values in

 

the current workfile sample.

 

 

resample—419

fixna

Excludes NAs from draws but copies rows containing

 

missing values to the output series.

Since we append a suffix for the new name, you may not use groups that contain auto-series. For example, resampling from a group containing the series X(–1) or LOG(X) will error. You will have to generate new series, say by setting XLAG = X(– 1) or LOGX = LOG(X). Then create a new group consisting of XLAG and LOGX and call the bootstrap procedure on this new group.

If the group name you provide already exists and is a group object, the group object will be overwritten. If the object already exists but is not a group object, EViews will error.

Block bootstrap (block length larger than 1) requires a continuous output sample. Therefore a block length larger than 1 cannot be used together with the “fixna” option, and the “outsmpl” should not contain any gaps.

The “fixna” option will have an effect only if there are missing values in the overlapping sample of the input sample (current workfile sample) and the output sample specified by “outsmpl”.

If you specify “fixna”, we first copy any missing values in the overlapping sample to the output series. Then the input sample is adjusted to drop rows containing missing values and the output sample is adjusted so as not to overwrite the copied values.

If you choose “dropna” and the block length is larger than 1, the input sample may shrink in order to ensure that there are no missing values in any of the drawn blocks.

If you choose “permute”, the block option will be reset to 1, the “dropna” and “fixna” options will be ignored (reset to the default “withna” option), and the “weight” option will be ignored (reset to default equal weights).

Examples

group g1 x y

g1.resample

creates new series X_B and Y_B by drawing with replacement from the rows of X and Y in the current workfile sample. If X_B or Y_B already exist in the workfile, they will be overwritten if they are series objects, otherwise EViews will error. Note that only values of X_B and Y_B in the output sample (in this case the current workfile sample) will be overwritten.

420—Appendix B. Command Reference

g1.resample(weight=wt,suffix=_2) g2

will append “_2” to the names for the new series, and will create a gropu objected named G2 containing these series. The rows in the sample will be drawn with probabilities proportional to the corresponding values in the series WT. WT must have non-missing nonnegative values in the current workfile sample.

Cross-references

See “Resample” on page 332 of the User’s Guide for a discussion of the resampling procedure. For additional discussion of wildcards, see Appendix B, “Wildcards”, on page 943 of the User’s Guide.

See also @resample (p. 625) and @permute (p. 624) for sampling from matrices.

reset

Command || Equation View

 

 

Compute Ramsey’s regression specification error test.

Syntax

Command:

reset(n, options)

Equation View: eq_name.reset(n, options)

You must provide the number of powers of fitted terms n to include in the test regression.

Options

p

Print the test result.

 

 

Examples

equation eq1.ls lwage c edu race gender

eq1.reset(2)

carries out the RESET test by including the square and the cube of the fitted values in the test equation.

Cross-references

See “Ramsey's RESET Test” on page 584 of the User’s Guide for a discussion of the RESET test.

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