Hello everyone,
I am using the cross and joinby commands to create pairwise comparisons of individual outcomes.
Suppose individuals in my dataset are indexed by id = 1, 2, ..., n. For my analysis, it is irrelevant whether I use the pair (1,2) or (2,1) because both provide the same information.
This means that after generating all pairs with cross or joinby, I always discard one of the duplicates.
Is there a more efficient way to generate unique, non-redundant pairs directly?
Thank you.
Best regards,
Vinicius Lima
I am using the cross and joinby commands to create pairwise comparisons of individual outcomes.
Suppose individuals in my dataset are indexed by id = 1, 2, ..., n. For my analysis, it is irrelevant whether I use the pair (1,2) or (2,1) because both provide the same information.
This means that after generating all pairs with cross or joinby, I always discard one of the duplicates.
Is there a more efficient way to generate unique, non-redundant pairs directly?
Thank you.
Best regards,
Vinicius Lima
Comment