I've attached an example of my input (i've tried with and without parentheses) When I print the new variable "group8", I would expect to see it coded 1,2,3 or 4 for each subject, but it is just blank At the end of this I basically want a new variable "group8" coded so I have 4 levels based on those original variables: treatment 1 + diagnosis 1 = 1 treatment 2 + diagnosis 1 = 2 treatment 1 + diagnosis 2 = 3 treatment 2 + diagnosis 2 = 4 Hope this makes sense. Thank you for your help.
... View more