REDEFINE MULTIPLE DICHOTOMY FROM CONDITIONS command
See Crunch Automation basics for more information.
The REDEFINE MULTIPLE DICHOTOMY FROM CONDITIONS command redefines a variable that is created using the CREATE MULTIPLE DICHOTOMY FROM CONDITIONS command. This command helps redefine a multiple response variable indicating the logical condition and optionally indicates the base for the evaluation, either by indicating the VALID rows or MISSING rows as a logical expression.
The MAPPING and VALID/MISSING block is the the same as those found in the CREATE MULTIPLE DICHOTOMY FROM CONDITIONS command.
REDEFINE alias AS MULTIPLE DICHOTOMY FROM CONDITIONS
MAPPING
SELECT condition [(MISSING|VALID) condition] LABEL "label" [ALIAS alias],
....
SELECT condition [MISSING|VALID) condition] LABEL "label" [ALIAS alias]
END
[MISSING|VALID) condition]
[TITLE "string"]
[DESCRIPTION "string"]
[NOTES "string"];
Examples
REDEFINE my_mr_cond AS MULTIPLE DICHOTOMY FROM CONDITIONS
MAPPING
SELECT A=1 VALID is_valid(A) LABEL "First" ALIAS s1,
SELECT B=1 OR C = 1 MISSING B != 1 LABEL "Second",
SELECT D != 1 AND (C != 1) LABEL "Third" ALIAS s2
END
TITLE "new_mr";
REDEFINE my_mr_cond AS MULTIPLE DICHOTOMY FROM CONDITIONS
MAPPING
SELECT A=1 LABEL "First" ALIAS s1,
SELECT B=1 OR C = 1 LABEL "Second",
SELECT D != 1 AND (C != 1) LABEL "Third" ALIAS s2
END
MISSING is_missing(asked) OR asked = 1;