SELECT selects a subsample of observations from the last SMPL statement.
SELECT (SILENT, PRINT) <logical expression> ;
Usage
SELECT is exactly the same as SMPLIF, except it operates on the last SMPL statement instead of the last SMPLIF or SELECT statement. This means that consecutive SELECT statements are independent -- they do not create a nested sequence of subsamples. This is more convenient than saving and restoring the previous SMPL manually.
Output
Some pairs of sample observations are printed, unless the SILENT option or SUPRES @SMPL; has been used.
PRINT/NOPRINT prints the full set of sample pairs resulting from SELECT. Normally only one line of output is printed.
SILENT/NOSILENT prints no output at all. Same as SUPRES SMPL; before SELECT .
SMPL 1,10; TREND T;
SELECT T > 5; MSD T;
SELECT T > 2 & T < 9 ; MSD T;
creates subsamples 6,10 and 3,8 . The second SELECT statement is equivalent to
SMPL 1,10;
SMPLIF T > 2 & T < 9 ; MSD T;
SELECT 1;
can be used to return to the last SMPL statement.