I am trying to create the syntax file that will create the categorical variable (lets call it VAR1_LEVEL) with the following values:
If VAR1 is below the MEAN - SD of the population VAR1_LEVEL =1
If VAR1 is below the MEAN - SD and MEAN + SD of the population VAR1_LEVEL =2
If VAR1 is over the MEAN + SD of the population VAR1_LEVEL =3
Is it possible to achieve it in Syntax file?
Thanks for you help