|
SUBSETName:
where <command> is a DATAPLOT command that allows subsets; <var> is a variable for which the subset is defined; <qual> is an optional qualifier (=, <, >, <>, <=, >=); and <list of values> are the values of <var> to be excluded. If <qual> is omitted, equality (i.e, =) is assumed.
<command> SUBSET <var> = <min> TO <max> where <command> is a DATAPLOT command that allows subsets; <var> is a variable for which the subset is defined; <min> is the minimum value of <var> to exclude; and <max> is the maximum value of <var> to exclude. The "=" qualifier is optional in this syntax. This syntax excludes all values between (inclusive) <min> and <max>.
PLOT Y PRED VERSUS X SUBSET LAB 4 PLOT Y X SUBSET LAB 2 TO 8 SUBSET LAB 4 LET Y1 = Y2 SUBSET TAG = 4
is not valid. You need to do something like
PLOT Y X SUBSET Y > B
the name A was restricted to a parameter name (i.e., a single value). The 2021/07 version of Dataplot extended this to support variables on he right hand side. So you can now do something like
LET Y1 = NORMAL RANDOM NUMBERS FOR I = 1 1 N LET Y1 = SORT Y1 LET Y2 = LOGISTIC RANDOM NUMBERS FOR I = 1 1 N LET Y2 = SORT Y2 LET TAG = 0 FOR I = 1 1 N LET TAG = 1 SUBSET Y1 < Y2 This is only supported for Syntax 1.
LET X = SEQUENCE 1 1 10 LET Y = X**2 PRINT X Y PRINT X Y SUBSET Y > 60 RETAIN X Y SUBSET Y > 60 PRINT X YThe following output is generated ------------------------------ X Y ------------------------------ 1.00000 1.00000 2.00000 4.00000 3.00000 9.00000 4.00000 16.00000 5.00000 25.00000 6.00000 36.00000 7.00000 49.00000 8.00000 64.00000 9.00000 81.00000 10.00000 100.00000 ***** NOTE-- SUBSET VARIABLE = Y SUBSET MINIMUM = 0.6000006000E+02 SUBSET MAXIMUM = 0.1797693135+309 INPUT NUMBER OF OBSERVATIONS = 10 NUMBER OF OBSERVATIONS IGNORED = 7 OUTPUT NUMBER OF OBSERVATIONS = 3 ------------------------------ X Y ------------------------------ 8.00000 64.00000 9.00000 81.00000 10.00000 100.00000 ***** NOTE-- SUBSET VARIABLE = Y SUBSET MINIMUM = 0.6000006000E+02 SUBSET MAXIMUM = 0.1797693135+309 INPUT NUMBER OF OBSERVATIONS = 10 NUMBER OF OBSERVATIONS IGNORED = 7 OUTPUT NUMBER OF OBSERVATIONS = 3 VARIABLE X --OLD NUMBER OF ELEMENTS = 10 NEW NUMBER OF ELEMENTS = 3 FIRST VALUE DELETED = 0.1000000E+01 (DELETED FROM ROW 1) LAST VALUE DELETED = 0.7000000E+01 (DELETED FROM ROW 7) FIRST VALUE RETAINED = 0.8000000E+01 (MOVED FROM ROW 8 TO ROW 1 ) LAST VALUE RETAINED = 0.1000000E+02 (MOVED FROM ROW 10 TO ROW 3) VARIABLE Y --OLD NUMBER OF ELEMENTS = 10 NEW NUMBER OF ELEMENTS = 3 FIRST VALUE DELETED = 0.1000000E+01 (DELETED FROM ROW 1) LAST VALUE DELETED = 0.4900000E+02 (DELETED FROM ROW 7) FIRST VALUE RETAINED = 0.6400000E+02 (MOVED FROM ROW 8 TO ROW 1 ) LAST VALUE RETAINED = 0.1000000E+03 (MOVED FROM ROW 10 TO ROW 3) ------------------------------ X Y ------------------------------ 8.00000 64.00000 9.00000 81.00000 10.00000 100.00000
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 07/27/2021 |