Match
function. balanceMV
is
used to determine if Match
was successful in achieving
balance. Multivariate balance is determined by the use of a model.
This approach can be used regardless of the algorithm used to do the
original matching. For example, even if Match
was
told NOT to use a propensity score, balanceMV
can be used to
test balance. Output can be summarized by using the
summary.balanceMV
function. Generally, users should call
MatchBalance
and not this function directly.balanceMV(formul, data = NULL, match.out=NULL, maxit = 1000,
weights = rep(1,nrow(data)), nboots=100, nmc=nboots, print.level=0, ...)
Match
function. If this output is included, balanceMV
will provide
balance tests for both before and after matching. Otherwise
balance tests will only be cglm.control
.formul
on the unmatched data.formul
on the matched data.ks.test
before matching.ks.test
after
matching.Tr
) and the matched data
(Tr.matched
), weights for the matched data used for the glm
models, index.treated
, and index.control
. The two
indexes are defined in Match
. The user should never
need to examine this object. Sekhon, Jasjeet S. 2006. ``Alternative Balance Metrics for Bias
Reduction in Matching Methods for Causal Inference.'' Working Paper.
Diamond, Alexis and Jasjeet S. Sekhon. 2005. ``Genetic Matching for
Estimating Causal Effects: A General Multivariate Matching Method for
Achieving Balance in Observational Studies.'' Working Paper.
Abadie, Alberto. 2002. ``Bootstrap Tests for Distributional Treatment Effects in Instrumental Variable Models.'' Journal of the American Statistical Association, 97:457 (March) 284-292. Hall, Peter. 1992. The Bootstrap and Edgeworth Expansion. New York: Springer-Verlag.
Wilcox, Rand R. 1997. Introduction to Robust Estimation. San Diego, CA: Academic Press.
William J. Conover (1971), Practical nonparametric statistics. New York: John Wiley & Sons. Pages 295-301 (one-sample "Kolmogorov" test), 309-314 (two-sample "Smirnov" test).
Shao, Jun and Dongsheng Tu. 1995. The Jackknife and Bootstrap. New York: Springer-Verlag.
summary.balanceMV
,
MatchBalance
, balanceUV
, qqstats
,
ks.boot
, Match
, GenMatch
,
GerberGreenImai
, lalonde
data(lalonde)
#
#direct matching on some variable
#
X <- cbind(lalonde$re74,lalonde$re75,lalonde$age,lalonde$hisp,lalonde$black)
Y <- lalonde$re78
Tr <- lalonde$treat
rr <- Match(Y=Y,Tr=Tr,X=X,M=1)
#multivariate test for balance
# 'nboots' and 'nmc' are set to small values in the interest of speed.
# Please increase to at least 500 each for publication quality p-values.
ks <- balanceMV(treat~ age + I(age^2) + educ + I(educ^2) + black +
hisp + married + nodegr + re74 + I(re74^2) + re75 + I(re75^2) +
u74 + u75, data=lalonde, match.out=rr, nboots=10, nmc=10)
summary(ks)
Run the code above in your browser using DataLab