Hi,
I have a question regarding how to stratify a matching problem in MatchIt. I've been
using the package optmatch directly, to identify optimal full matches for a stratified
dataset (i.e., I have treatment and control groups for two sites, and I'd like to
match site-by-site). Extracting the matched data from optmatch is complex, so I've
switched to calling optmatch through MatchIt, using the following code:
m1.out<-matchit(Tr~
HH_SIZE+DOM_ETH+HH_GENDER+ED_LEVEL+ED_LEVEL_MISSING+RESIDENT+HH_AGE+MARKET,data=covariates,
method="full", distance="linear.logit", discard="hull.both",
min.controls=1,max.controls=Inf)
Is there a way to incorporate the strata denoted by "MPAID" when running
method='full' in MatchIt? I'd like to be able to view one set of balance
statistics, but still enforce matching within sites.
Any advice would be greatly appreciated!
Thank you!
Louise
Show replies by date