|
AGREEName:
The DISAGREE function returns a 1 if any of the values disagree and a 0 if all the values agree.
<SUBSET/EXCEPT/FOR qualification> where <y1>, ..., <yk> is a list of one to eight variable or parameters; <yout> is a variable or a parameter (depending on what <y1> ... <yk> are) where the computed response values are stored; and where the <SUBSET/EXCEPT/FOR qualification> is optional.
<SUBSET/EXCEPT/FOR qualification> where <y1>, ..., <yk> is a list of one to eight variables or parameters; <yout> is a variable or a parameter (depending on what <y1> ... <yk> are) where the computed response values are stored; and where the <SUBSET/EXCEPT/FOR qualification> is optional.
LET YOUT = AGREE(Y1,Y2) LET YOUT = AGREE(Y1,Y2,Y3,Y4) LET YOUT = AGREE(Y1,Y2,Y3,Y4) SUBSET TAG = 1 LET YOUT = DISAGREE(Y1,Y2)
NE and NOTEQUAL are synonyms for DISAGREE
2021/06: Add EQ and EQUAL as synonyms for AGREE 2021/06: Add NE and NOTEQUAL as synonyms for DISAGREE LET Y1 = DATA 1 1 0 0 0 1 LET Y2 = DATA 1 0 1 0 1 0 LET YOUT1 = AGREE(Y1,Y2) LET YOUT2 = DISAGREE(Y1,Y2) SET WRITE DECIMALS 0 PRINT Y1 Y2 YOUT1 YOUT2The following output is generated ------------------------------------------------------------ Y1 Y2 YOUT1 YOUT2 ------------------------------------------------------------ 1 1 1 0 1 0 0 1 0 1 0 1 0 0 1 0 0 1 0 1 1 0 0 1
Date created: 08/03/2011 |