I was wondering if SAS can match observations in the same table based on multiple matching conditions and then tag them. For instance I want observations which matches on age and gender but only differs based on if they like star wars or not.
This is the data I have
age gender Like star wars Location
34 male 1 US
36 female 0 UK
24 female 1 AU
45 female 1 US
34 male 0 CH
36 female 1 US
57 female 0 US
Want
> age gender Like star wars Location Match
> 34 male 1 US Yes
> 36 female 0 UK Yes
> 24 female 1 AU No
> 45 female 1 US No
> 34 male 0 CH Yes
> 36 female 1 US Yes
> 57 female 0 US No

Match, particularly the cases of34-maleand36-female. - Richard34-male-- how would Match be assigned based on the 'Like star wars' ? - Richard