dimanche 19 février 2017

SPSS - DO IF function with missing values and multiple compute statements

I want to compute multiple new variables for cases that are not missing multiple values. Example code:

DO IF (NOT MISSING(Var.1 to Var.10)).
COMPUTE A=0.
COMPUTE B=0.
COMPUTE C=0.
END IF.

This produces multiple errors: DO IF - The number of arguments to a function was incorrect. END IF - The command does not follow an unclosed DO IF command.

I've tried removing periods and adding/removing parentheses to no effect. Thanks for your help.

Aucun commentaire:

Enregistrer un commentaire