Hi,
I have a question about avoiding "within" matching in PSMATCH2. It seems that there are many posts about within, but not about avoiding within. (Please let me know if there are!! It would be so helpful).
My data looks like the following basically...
As you can see, a team has multiple observations, let's call them dyads. Ideally, I would like to calculate pscore for each dyad and match across teams not within. So even if row 1-3 are close in pscore, they should not be matched because they are all dyads of team A. How do I avoid matching within team?
Team | Collaborators | Treatment | Team's collaborator pick | var3.... |
A | Tom | 1 | 1 | |
A | John | 0 | 1 | |
A | Sam | 0 | 0 | |
B | Tom | 0 | 0 | |
B | John | 1 | 1 | |
B | Sam | 1 | 1 |
Thank you for your help!
Comment