How can I check the measure (nominal/ordinal/scale) of a variable using syntax?
问题 I would like to find the measure of a variable using syntax and then use this in an If-statement. Is this possible using syntax? For example, if I have two variables a (nominal) and b (ordinal): DO IF (a is nominal?) ... END IF 回答1: You can create a list of all the nominal variables in your data. In the following example the list will be stored under the macro call !noms : SPSSINC SELECT VARIABLES MACRONAME="!noms" /PROPERTIES LEVEL=NOMINAL. * now, for example you can run frequencies on all