-
Notifications
You must be signed in to change notification settings - Fork 47
Description
Hi Noah,
Nice to meet you, I'm a big fan of your vast portfolio of work.
I'm wondering if there's any way to do optimal pair or optimal distance matching while minimizing the distances according to a user-provided distance matrix, but also having this optimization be subject to some additional constraints?
For more detail - I'm working on implementing multi-level hierarchical matching with a variety of permutations for the match at each level. One example: "Optimal Multilevel Matching in Clustered Observational Studies: A Case Study of the Effectiveness of Private Schools Under a Large-Scale Voucher System" (Zubizarreta and Keele, 2017).
Here's how I've currently implemented with MatchIt:
- Iterate over every pair of possible treated/control classroom pairing. Perform matching on students within each of those experimentally matched classrooms (using student-level covariates), and use the number of students matched to build a distance matrix of classrooms.
- Match classrooms using the distance matrix (but not sure if it's possible to use classroom-level covariates when matching classrooms then!)
My understanding is that the "formula" parameter is only used when the method is computing the distance, but not when a distance matrix is supplied. Is this true? Is there any other work-arounds I could explore?
Thanks, your help is much appreciated!