I'm trying to figure out how to compute a new dichotomous variables
based on whether two variables contain the same string. For example:
================
Var1 Var2 same?
================
123 123 1
111 122 0
111 111 1
In my data set, I have hundreds of unique IDs, but I need to figure
out the extent to which the two variables match each other.
Thanks!
> I'm trying to figure out how to compute a new dichotomous variables
> based on whether two variables contain the same string. For example:
>
> ================
> Var1 Var2 same?
> ================
> 123 123 1
> 111 122 0
> 111 111 1
COMPUTE same = Var1 EQ Var2.
--
"Long noun chains don't automatically imply security."
--Bruce Schneier