REPL

Examples

REPL turns on the replacement mode option after it has been turned off with a NOREPL command. This option specifies that series are to be updated rather than completely replaced when the current sample under which they are being computed does not cover the complete series. OPTIONS REPL; is the same as REPL;.

REPL ;

Usage

While in REPL mode, if data are created for a sample which overlaps with the SMPL previously used to create the same series, the old values which fall within the current SMPL definition will be replaced, but those outside the current SMPL will remain untouched.

REPL is the default mode and remains in effect until a NOREPL is executed.

Examples

The result of the following sequence of statements:

REPL ;

SMPL 1 20 ; GENR DATE=1 ;

SMPL 11 20 ; GENR DATE=2 ;

will be a series DATE which is one for the first 10 observations and 2 for the second ten.

The result of this sequence of statements:

NOREPL ;

SMPL 1 20 ; GENR DATE=1 ;

SMPL 11 20 ; GENR DATE=2 ;

is a series DATE which is missing for observations 1 to 10 and equal to two for observations 11 to 20.