I have a variable with values from -100 to 100. I want a new variable where -14 to 14 will be 1 and all others will be 0.
I have this so far but I get an error.
DO IF (Rad_Start_Minus_Chemo_start GT -14).
Compute NACRT =1.
ELSE IF (Rad_Start_Minus_Chemo_start LT 14).
COMPUTE NACRT=1
ELSE IF (Rad_Start_Minus_Chemo_start GT 14).
Compute NACRT=0.
ELSE IF (Rad_Start_Minus_Chemo_start LT -14).
Compute NACRT=0.
END IF.
Aucun commentaire:
Enregistrer un commentaire