After students and schools have both been matched separately, assembles the matched student samples corresponding to the school match into a single dataframe of student-level data.
assembleMatch(student.matches, school.match, school.id, treatment)
a dataframe containing the full set of matched samples for the multilevel match.
a list of lists object produced by
matchStudents
, with each element of the second list containing a
dataframe composed of a matched sample for a different treated-control
school pairing.
a dataframe, produced by matchSchools
, with two
columns, one containing treated school IDs and the other containing matched
control school IDs.
the name of the column storing the unique school identifier
(in the dataframes stored in student.matches
)
the name of the column storing the binary treatment status
indicator (in the dataframes stored in student.matches
)
Luke Keele, Penn State University, ljk20@psu.edu
Sam Pimentel, University of California, Berkeley, spi@berkeley.edu