Balance assessment for individual variables, before and after matching
sdiff(varname, treatment, orig.data, match.data = NULL)
a labeled vector. For sdiff
, the vector has six elements if
match.data
is provided: treated and control means and standardized
differences before and after matching. If match.data
is not
provided, the vector has only the three elements corresponding to the
pre-match case.
For the other functions, if match.data
is provided, the vector
contains p-values for the test before and after matching. Otherwise a
single p-value is given for the pre-match data.
name of the variable on which to test balance
name of the binary indicator for treatment status
a data frame containing the data before matching
an optional data frame containing the matched sample
Luke Keele, Penn State University, ljk20@psu.edu
Sam Pimentel, University of California, Berkeley, spi@berkeley.edu
The sdiff
function computes the standardized difference in means. The
other functions perform different kinds of balance tests: t.balance
does the 2-sample t-test, fisher.balance
does Fisher's exact test for
binary variable, and wilc.balance
does Wilcoxon's signed rank test.
Rosenbaum, Paul R. (2002). Observational Studies. Springer-Verlag.
Rosenbaum, Paul R. (2010). Design of Observational Studies. Springer-Verlag.