Folks,
I have three numeric variables which range from 0 to n and I would like to compare if they match across records and if not which way to they disagree.
The name my variables are A , B and C. I've drawn the logic out in a 3 way Venn Diagram but I'm trying to write a if clause in SAS to extract out the information. I have 7 combinations in total.
A
B
C
A=B
A=C
B=C
A=B=C
I would like to have something written such as; if A=B=C then Cohort='ABC'
if A=B then Cohort='AB' and so on.
Any help on this would be great.