Performs balance checking after multilevel matching.

Share:

Description

This function checks balance after multilevel balance. It checks balance on both level-one (student) and level-two (school) covariates. It reports results from both the t-test and nonparametric tests including Fisher's exact test and Wilcoxon signed rank test.

Usage

1
balanceMulti(match.obj, student.cov = NULL, school.cov = NULL)

Arguments

match.obj

A multilevel match object

student.cov

Names of student level covariates that you want to check balance

school.cov

Names of school level covariates that you want to check balance. If not listed balance is checked on all school level covariates included in the match.

Details

This function returns a list which include balance checks for before and after matching for both level-one and level-two covariates. Balance statistics include treated and control means, standardized differences, which is the difference in means divided by the pooled standard deviation before matching, and p-values from parametric and nonparametric tests.

Value

students

Balance table for student level covariates

schools

Balance table for school level covariates

Author(s)

Luke Keele, Penn State University, ljk20@psu.edu

Sam Pimentel, University of Pennsylvania, spi@wharton.upenn.edu

See Also

See also matchMulti, matchMultisens, matchMultioutcome, rematchSchools

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
	## Not run: 
# Load Catholic school data
data(catholic_schools)

student.cov <- c('minority','female','ses','mathach')

# Check balance student balance before matching
balanceTable(catholic_schools[c(student.cov,'sector')],  treatment = 'sector')

#Match schools but not students within schools
match.simple <- matchMulti(catholic_schools, treatment = 'sector', 
school.id = 'school', match.students = FALSE)

#Check balance after matching - this checks both student and school balance
balanceMulti(match.simple, student.cov = student.cov)

## End(Not run)